Shopify themes, liquid, logos, and UX
Hi Folks:
Does anybody know how to implement logic that shows a specific announcement bar but only for a selected page. The announcement bar then would not be shown for other pages.
Thanks,
Drew
Solved! Go to the solution
This is an accepted solution.
Hello @drew_ward
This guide will be helpful to you; please refer to it -
https://www.shopify.com/in/partners/blog/shopify-announcement-bar
Hi Drew
https://shopify.dev/api/liquid/objects#request
Use 'request.path'. Something like
{% if request.path includes <your string> %}
...do stuff
{% endif %}
Not tested, but you get the idea.
Thank you.
oh sorry for that issue can you please share store url
You would basically need to either make a custom announcement bar section that changes things based on the logic that detects the page.
Or make an alternate theme.liquid layout then modify those pages to use that layout with a different announcement bar.
Either way generally and advanced theme customization.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Thank you Paul.
This is an accepted solution.
Hello @drew_ward
This guide will be helpful to you; please refer to it -
https://www.shopify.com/in/partners/blog/shopify-announcement-bar
Thank you. I'll review the link.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025