Remove Seach and Cart icons unless customers logged in.

Hi all,

Would like to remove the search and cart icons from the header unless customers log in. when They log in it should be visible. I have done in on my previous version of Dawn theme but now cannot find it :slightly_smiling_face:

How can I do it again?

Hey @Burky

Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

Best Regards,
Moeed

This can be done by modifying your theme file you need to enclose your code which is responsible for displaying search and cart icons within these liquid tags

{% if customer %} 
 
{% endif %}
1 Like

Thanks. I knew the code but now i have found the right place :slightly_smiling_face:

For that I have to view your theme code
You can share collaborator access on my email address so that I can help you in finding the exact place where the code needs to be modified

Hi Asad, I have fixed it. Thanks