Announcement bar disappearing after scrolling

Announcement bar disappearing after scrolling

TuneToyz
Explorer
91 0 22

hello my website is tunetoyz.com and whenever I scroll down the announcement bar on the top disappear I want it to always stay, even when I scroll down. Thank you so much!

Screen Shot 2024-07-26 at 11.25.56 PM.png

Screen Shot 2024-07-26 at 11.26.10 PM.png

 

 

 

Replies 8 (8)

K-Mahesh
Shopify Partner
21 3 5

Hello @TuneToyz 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid

.essential_annoucement_bar_wrapper {
    position: sticky;
    top: 0;
}

Screenshot 2024-07-27 120809.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

TuneToyz
Explorer
91 0 22

TuneToyz_1-1722100144366.png

hey when I add this it works but when I open my product page the title becomes covered by the header

TuneToyz
Explorer
91 0 22

Screen Shot 2024-07-27 at 10.14.37 AM.png

when adding your code the cart gets moved down on mobile aswell

niraj_patel
Shopify Partner
2391 516 515

Hello @TuneToyz 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
.essential_annoucement_bar_wrapper_0f57462a-8d6e-4e75-8780-31caaa0d1224.clickable{
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
TuneToyz
Explorer
91 0 22

TuneToyz_0-1722100124432.png

hey when I add this it works but when I open my product page the title becomes covered by the header

BSS-TekLabs
Shopify Partner
2401 695 831

- Here is the solution for you @TuneToyz 
- Please follow these steps:

step.png

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.essential_annoucement_bar_wrapper {
     position: fixed !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722062388697.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
TuneToyz
Explorer
91 0 22

Screen Shot 2024-07-27 at 10.07.32 AM.png

hey when I add this it works but when I open my product page the title becomes covered by the header

TuneToyz
Explorer
91 0 22

Screen Shot 2024-07-27 at 10.12.52 AM.png

also after adding this the cart gets moved down on mobile