Change the link of the button in the empty cart to the Dawn theme

hello, I would like to replace the empty cart button link from all products on the home page, thanks for who will help me :slightly_smiling_face:

1 Like

Hello @yassined9866 ,

  1. Go to Online Store->Theme->Edit code
  2. Edit main-cart-items.liquid under Sections

Now here search for this code


once found then replace it with this one


Last hit save and check it.

Thanks

3 Likes

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?

  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