Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I've made my header transparant with the code below. However, now my announcement bar forever does not look how I want it to. I need much less space above and below the text. Also it shoul dnot overlap with my header. And I want it to be fully shown on mobile. Can someone help? My store link: https://rednah.com/
<style>
.shopify-section-group-header-group.announcement-bar-section{
height: 40px;
}
.header-wrapper{
position: absolute;
width: 100%;
background: transparent;
}
.header-wrapper .header{
margin-top: 25px;
}
</style>
{% endif %}
try this code
<style>
.shopify-section-group-header-group.announcement-bar-section{
height: auto;
}
.header-wrapper{
position: absolute;
width: 100%;
background: transparent;
}
.header-wrapper .header{
margin-top: 5.5rem;
}
</style>
Thank you very much for this! Just one thing. How can I remove the space above and below the text as much as possible?
Please add the following css code to your assets/base.css bottom of the file.
.announcement-bar__message {
padding: 0.5rem 0 !important;
min-height: 0.8rem !important;
}
Thanks!
I tried. But it didn't change (see attached where I pasted the code). Perhaps something else I can try?
closing bracket missing please check follwing code and screenshot.
100% {
transform: translateX(100%) scaleX(0);
}
}
.announcement-bar__message {
padding: 0.5rem 0 !important;
min-height: 0.8rem !important;
}
Thanks!
Hi,
I tried. This also does not work. Any other suggestions maybe? Also all of a sudden my colors in mij editing screen look different than on the actual website. So my menu now is brown but should be white.
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