All things Shopify and commerce
I had recently changed the code to take of the cart icon from my page but i need this icon back. How to i do this?
My URL s voujon.myshopify.com
Please assist.
If you have removed the cart icon from your Shopify Dawn theme and want to add it back, you can follow these steps:
Hi,
To further clarify, basically you want to replace 'Checkout' work, with an icon? Do you happen to have a backup of the theme, which contains this icon? If yes, the task would be pretty straightforward.
Cheers!
Hello @Voujon ,
It's GemPages support team and glad to support you today.
I would like to give you a recommendation to support you so kindly follow steps below:
1. Go to Online Store > Theme > Edit code of your current theme
2. Open your header.liquid theme file
3. Find header__icon--cart
4. Add the below code to replace your text in this possition
{%- liquid
if cart == empty
render 'icon-cart-empty'
else
render 'icon-cart'
endif
-%}
Let us know how it works for you.
Best regards,
GemPages Support Team
To add the cart icon back to your Shopify store, you can follow these steps:
1.Log in to your Shopify account and navigate to the Online Store section of your admin dashboard.
2.Click on Themes.
3.On the Themes page, click on the Actions button next to your current theme, and select Edit code.
4.In the left-hand sidebar, navigate to the section called Sections and find the header section.
4.Look for the code that generates the cart icon. This may vary depending on your theme, but it's usually something like {% include 'icon-cart' %}.
5.If you removed this code previously, you'll need to add it back in. If the code is still there but the icon isn't showing up, there may be a problem with your theme's CSS or JavaScript files.
6.Make any necessary changes to the code, and then save your changes.
7.Preview your store to make sure the cart icon is displaying correctly.
8.Once you're happy with the changes, click the Publish button to make the changes live on your store.
Regards
John
CEO
Mobilesinbd
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024