Shopify themes, liquid, logos, and UX
I am using the Shopify Symmetry theme and would like to make the announcement bar sticky so that it remains at the top of the page while scrolling.
Solved! Go to the solution
This is an accepted solution.
The code i gave you above, I am attaching the screenshot below, please set the top to 39px only.
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
Hello,
Please share "Store URL"
Thanks!
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>
<style>
.announcement-bar .container {
position: sticky !important;
}
</style>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
.shopify-section.shopify-section-group-header-group.section-announcement-bar {
position: sticky;
top: 0 !important;
z-index: 401 !important;
}
.section-header {
top: 30px !important;
}
Result:
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media only screen and (max-width: 767.98px) {
.section-header {
z-index: 400 !important;
}
}
Thanks, I only have one question. see the two images below. Now when i scroll the space between the announcement bar and the logo is going to be smaller and i want it to stay the same.
This is an accepted solution.
The code i gave you above, I am attaching the screenshot below, please set the top to 39px only.
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!
Please mark all my solutions and like them as well.
Thanks for the great help!
In Canada, payment processors, like those that provide payment processing services t...
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