How can I hide search and cart icons on Dawn homepage?

Topic summary

A Dawn theme user seeks to hide search and cart icons specifically on their homepage for both mobile and desktop views.

Solution Provided:

  • Access theme code editor via Online Store > Theme > Edit code
  • Open the theme.liquid file
  • Insert custom CSS code before the </head> tag
  • The code uses conditional logic: {% if template == 'index' %} to target only the homepage

Outcome:
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.

Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

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:

  1. Go to Online Store > Theme > Edit code of your current theme

  1. Open your theme.liquid theme file

  2. 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

1 Like

@GemPages Thank you for your help!

1 Like

I am so glad that my solution can help.

Best regards,
GemPages Support Team