Adding an announcement bar under the header on top of the product description on one product page

I would like to add an announcement bar so I can put text on top of the product description section and below the header. So in between the two. I only want to do this for one products product page. Can anyone assist? My theme is Craft. Thanks.

Hi @dogand

You can do that by going to your Online store > Themes > Edit code > open theme.liquid file, find this line of code

{% sections 'header-group' %}

Add this code below this line of code above

{%- if product.id == your shopify product ID  -%}
    
      

        

          

                Welcome to our store
          

        

      

    
  
    {%- endif -%}

Please add your shopify product ID that you want announcement bar appear

1 Like

Hi @Dan-From-Ryviu

Just to clarify, do I add the code below or above the header group code? Also how would I add my product ID?

Thank you for your help!

1 Like

Sorry, please add code below header group.

You can see your product ID when opening that product in your Shopify admin, check the number after /product/ part is product ID

1 Like

@Dan-From-Ryviu how would I add this product ID to the code? and where in the code?

Please check this image

1 Like