i need the final code for the grey announcement bar that have this website, under the header menu:
anyone can help me and give the final code? my website is juliettemarseille.fr
A user seeks code to replicate a grey announcement bar positioned below the header menu, similar to one on a reference website.
Solutions Offered:
Quick check: Verify if the theme already includes an announcement bar option in Customize > Header settings
Custom implementation: Create a new Liquid section file (announcement-bar-2.liquid) with provided HTML/CSS code that:
Implementation steps:
{% section 'announcement-bar-2' %} after the header section in theme.liquidThe code includes a default French message about free shipping and returns, matching the user’s French-language website.
i need the final code for the grey announcement bar that have this website, under the header menu:
anyone can help me and give the final code? my website is juliettemarseille.fr
@matthewdropship please go to customize settings, header settings and check if you have an option for announcement bar and click on the checkbox
Hi @matthewdropship ,
Go to:
Online Store > Themes > Edit Code
Create a new section called announcement-bar-2.liquid
Use the following code:
{{ section.settings.text }}
{% schema %}
{
“name”: “Announcement Bar 2”,
“settings”: [
{
“type”: “text”,
“id”: “text”,
“label”: “Text”,
“default”: “Livraison gratuite dès 50€ d’achat | Retours sous 14 jours”
}
]
}
{% endschema %}
{% section ‘header’ %}
Add this:
{% section ‘announcement-bar-2’ %}
Please let me know if it works for you. \
Thanks !