Shopify themes, liquid, logos, and UX
I am looking for a solution to how do I show my Announcement bar only on the Home page of the Spotlight Theme.
Hey @_nevermindthen ,
To show the Announcement bar only on the Home page of the Spotlight theme, you can achieve this with a simple Liquid conditional statement. Here's how to do it:
Follow these Steps:
1. Online Store > Themes > Edit Code
2. Locate the announcement bar code:
- In the code editor, find the file responsible for the Announcement bar. It's usually located in:
Sections/announcement-bar.liquid
or
Snippets/announcement-bar.liquid
3. Add a Conditional Statement:
Wrap the Announcement bar code with a Liquid conditional to ensure it only displays on the Home page:
{% if template.name == 'index' %}
<!-- Existing Announcement Bar Code -->
{% endif %}
Save and Preview:
Preview your store to confirm that the Announcement bar is visible only on the Home page.
To address this efficiently, please send me a message via email so I can help you in detail. I’d love to assist you with my 5 years of experience and ensure everything is resolved perfectly.
Looking forward to hearing from you!
Best regards,
Rajat Sharma
Hey @_nevermindthen
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hi @_nevermindthen , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
nevermindthen.com
thank you
nevermindthen.com
thanks
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024