4. Save and Test- Save the setting_schema.json file.
Preview the theme. The Announcement Bar should now be off by default whenever the theme is uploaded.### Optional: Hardcode the Announcement Bar Off
If you want to ensure the Announcement Bar is permanently disabled, you can directly edit the header.liquid (or relevant file) where the Announcement Bar is included:
Go to the Sections folder in the theme editor.
Open the file that renders the Announcement Bar, usually named announcement-bar.liquid or part of header.liquid .
Surround the bar’s logic with a condition that prevents it from rendering:
This ensures the Announcement Bar is never displayed, regardless of theme settings.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.