I have added an icon to the header in desktop view by editing header.liquid, but how do I make the icon appear on mobile view?
First of all, you need to describe the issue better, please share the following :
-
Specify which icon (screenshot may be)
-
preview link of your store
Hi @stikkimorey ,
Please send the website link, I will check it for you
Thank you for taking the time to reply, I will try again to explain.
I am using the Dawn Theme
I have edited header.liquid to add a heart icon just before the cart icon which I am using to link to a wishlist. Finding the place to add that in header.liquid was straightforward, but it only displays the icon on desktop.
Can you tell me where is the code that is used to create the mobile header? I can’t see where it is in header.liquid. Is the code in a diferent section?
Also store is here: https://ca9f81-c1.myshopify.com/
password is letmein
Hi @stikkimorey ,
I checked and it won’t really display well on mobile:
I think it would be better if it was displayed in the menu drawer on mobile.
Please let me know, I will check it.
Hi Thanks
I just want the heart icon to appear next to the search icon and cart icon on mobile. How can I best achieve that? I cant see where to edit the mobile header.
Thanks
Hi, yes thats what I want but I dont know which file to edit to achieve it
Hi @stikkimorey ,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
@media screen and (max-width: 990px) {
.header-icons {
display: flex !important;
}
.header-icons > * {
display: none;
}
.header-icons .icon.icon-heart {
display: block;
width: 44px;
height: 44px;
}
}

