Shopify themes, liquid, logos, and UX
hello, I would like to replace the empty cart button link from all products on the home page, thanks for who will help me 🙂
Solved! Go to the solution
This is an accepted solution.
Hello @yassined9866 ,
1. Go to Online Store->Theme->Edit code
2. Edit main-cart-items.liquid under Sections
Now here search for this code
<a href="{{ routes.all_products_collection_url }}" class="button">
once found then replace it with this one
<a href="/" class="button">
Last hit save and check it.
Thanks
This is an accepted solution.
1. Go to Online Store->Theme->Edit code
2. Asset->base.css-> paste bellow code in bottom of file
.modal__toggle-open.icon.icon-search {
display: none;
}
This is an accepted solution.
Hello @yassined9866 ,
1. Go to Online Store->Theme->Edit code
2. Edit main-cart-items.liquid under Sections
Now here search for this code
<a href="{{ routes.all_products_collection_url }}" class="button">
once found then replace it with this one
<a href="/" class="button">
Last hit save and check it.
Thanks
thank you so much friend, it worked! can I ask you the last thing if you can solve it? in practice I would like to remove the search icon next to the cart as you see in the picture, can this be done?
This is an accepted solution.
1. Go to Online Store->Theme->Edit code
2. Asset->base.css-> paste bellow code in bottom of file
.modal__toggle-open.icon.icon-search {
display: none;
}
Hello there,
i have same issue and your solutions helps me too, but may i ask if i want them to come direct to landing page instead of homepage.
Can i get the code?
Thank you so much.
Use your URL in place of '/' here
href="/"
yes it works. thank you so much.
thanks Guleria, last question, but I can remove the dynamic button from the cart and put it in the checkaut, I tried a code that I saw on youtube but it didn't work, would you know how to do it?
No, you can't do customization in checkout page.
yes I know, sorry I didn't explain, I meant moving the dynamic button in the check aut
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024