Hi,
I need help removing the scrollbar from my announcement header. I
want it to scroll automatically, but not have the navigation bar. The arrows are ok.
I am using the refresh theme.
Hey,
Can you share site url so that I can help with. Thanks
www.acushop.co.nz
Thank you
You have some broken code in your <head> ![]()
See how opening <script> does not have a closing </script> buddy and instead there is a <link ...> element?
Therefore this script does not run. It does not replace the no-js class on the <html> with js and several elements have styling as if they run in a browser without Javascript.
Quick fix is to open your layouts/theme.liquid and change first line from
<html class="no-js" lang . . .
to
<html class="js" lang . . .
Proper fix would be to restore the code so that the script runs, but it is necessary to see it to suggest the fix.
You can share a top part of the layout file (above the </head> tag) here, just use the </> button or forum engine will mangle the code.
Dear @Summertime
Please follow these steps to resolve the issue:
First, you need to enter the “engine room” of your Shopify store.
Most modern Shopify themes (like Dawn or other OS 2.0 themes) use a central CSS file.
base.css (Standard for Dawn/Free themes)theme.css or global.cssstyles.scss.liquid (For older themes)Scroll to the very bottom of the file. It is best practice to add a comment line so you can easily find your edits later.
...
.announcement-bar .announcement-bar-slider.slider-buttons div {
overflow: hidden !important;
}
...
Regards,
Eric from Shopplaza
hey @Summertime try this one by follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the </body>tag if this code work please do not forget to like and mark it solution
<style>
div#Slider-sections--16007375847487__announcement-bar {
scrollbar-width: none !important;
}
</style>
Hi @Summertime,
Hope you are doing well.
Go to your Shopify admin and open the Code Editor.
Search for the file named: component-slider.css
Scroll down to Line 240 (as highlighted in your screenshot).
You will see the following block of code
.no-js .slider {
-ms-overflow-style: auto;
scrollbar-width: auto;
}
comment this line: scrollbar-width: auto;
Thanks!