Hi all!
Would anyone be able to assist me in hiding the search and shopping cart icons on the homepage for both mobile and desktop?
I am using Dawn and my URL is www.day204clothing.com
Below are pictures. Let me know if you have any questions!
A Dawn theme user seeks to hide search and cart icons specifically on their homepage for both mobile and desktop views.
Solution Provided:
</head> tag{% if template == 'index' %} to target only the homepageOutcome:
The solution was successfully implemented and resolved the issue. The approach uses Liquid templating to conditionally apply CSS that hides the icons exclusively on the index/homepage template while keeping them visible on other pages.
Hi all!
Would anyone be able to assist me in hiding the search and shopping cart icons on the homepage for both mobile and desktop?
I am using Dawn and my URL is www.day204clothing.com
Below are pictures. Let me know if you have any questions!
Hello @Day204 ,
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:
Open your theme.liquid theme file
Paste the below code before
{% if template == 'index' %}
{% endif %}
If you require any further information, feel free to contact me.
Best regards,
GemPages Support Team
@GemPages Thank you for your help!
I am so glad that my solution can help.
Best regards,
GemPages Support Team