Make the announcment bar visible

Topic summary

A user seeks help making their announcement bar visible on their Shopify store’s homepage.

Solutions Provided:

Theme Customizer Approach:

  • Navigate to Online Store > Themes > Customize
  • Locate the announcement bar section
  • Toggle the eye icon to make it visible
  • This is the simplest method without code editing

Code-Based Solutions:

Multiple contributors offered CSS/code snippets to add to theme.liquid:

  • One suggests adding code above the </body> tag
  • Another recommends conditional code to show the bar only on the index page, placed before </body>
  • A third solution involves adding code above the </head> tag

Key Steps:

  1. Access Online Store > Themes
  2. Click Actions > Edit Code
  3. Open theme.liquid file
  4. Insert provided code at specified location
  5. Save changes

Screenshots were shared showing both the theme customizer interface and expected results. The discussion remains open with no confirmed resolution from the original poster.

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

Hello guys, how do I make the announcement bar visible on the home page?
Thanks,

Wassim

1 Like

Hey @wh31_wh1222

Follow these Steps:

  1. Go to Online Store
  2. Edit Code
  3. Find theme.liquid file
  4. Add the following code in the bottom of the file above tag.

RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi @wh31_wh1222

If you like to visible your announcement bar you can easily hide in the customize theme.

Just close the eye icon

But if you dont this feature you can check the code.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “theme. Liquid” file. Find the tag and paste the code below before the tag.

{% if template == 'index' %}

{% endif %}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi @wh31_wh1222

This is Theodore from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Theodore | PageFly