How can I move my Donate for Gift widget on the page or the cart?

Created by Shop for Good Support, Modified on Tue, 11 Oct, 2022 at 5:19 PM by Shop for Good Support

Manual placement: Donate for Gift on the product page

To change the location of your Donate for Gift widget on your product page, you'll need to first switch from AUTOMATIC to MANUAL placement in the Shop for Good dashboard:



Then hit SAVE!


Then copy the code snippet and manually paste it where you want it to show (you'll be pasting it within your code files):

<div class="dk-gift-static"></div>


Then go to your Online Store Themes and Edit code.




Look for the product liquid file. In this case, the file name is product-template.liquid. Locate the placement, which in this case is under the payment_button.


Remember to SAVE your changes! Then go to your product page and refresh it to see the widget. 


If you don't see it, try a couple more places in the code file.



Manual placement: Donate for Gift on the cart page

To place the Donate for Gift on the cart page, this will depend on your theme and the location you want to place the widget within your cart page.


For example, if you want to place the widget underneath your cart items or subtotal, follow these instructions:


Go to your Themes and Edit code.



Look for the cart liquid file. In this case, the file name is cart-template.liquid. Locate the placement, which in this case is under the cart-subtotal.


Remember to SAVE your changes! Then go to your cart page and refresh it to see the widget. 


If you don't see it, try a couple more places in the code file. 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article