Shopify themes, liquid, logos, and UX
Hi guys, what code would I need to get my announcement bar to be sticky on ONLY the home page please?
my website is: doorstepdrip.com
any help would be much appreciated:)
Hi @doorstepdrip ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
{% if template.name=="index" %}
#shopify-section-marquee{
position: sticky;
top: 0;
z-index: 9999;
}
#shopify-section-header{
top:43px
}
{% endif %}
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
That did not work at all.. did I do something wrong? How so I make it sticket permanent. for this site: https://mayli-jewels.com/
I assume the announcement bar is the orange barn I have on top correct?
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024