Announcement bar text center + eliminate transparent space between top of the bar and the page.

Solved

Announcement bar text center + eliminate transparent space between top of the bar and the page.

starscream911
Explorer
52 0 14

 

Hello experts! 

Can we find a solution for the following issue in my store:

 

I want to center the text in my announcement bar between the top and the bottom,

and also i want to eliminate transparency between the top edge of the bar and the page - from time to time there is a gap which you can see when I scroll in mobile version (IOS device), screenshot attached bellow,

 

Any help will be appreciated! 

0-02-05-fcc711ed69dddf06637c00fa8d3dcfe51b3c4530c70584c4ccc2e58b769aaeaa_a1f194223acd87da.jpg

 

Accepted Solutions (2)

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @starscream911

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
@media only screen and (max-width: 767px) {
   .announcement-bar__message {
      line-height: 2;
   }
}
</style>

 

Hope this can help you,

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

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @starscream911

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (max-width: 767px) {
 .shopify-section.shopify-section-group-header-group.announcement-bar-section {
    transform: translateY(-1px);
    padding-top: 1px; 
  }
}
</style>

Hope this can help you,

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

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 4 (4)
starscream911
Explorer
52 0 14

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @starscream911

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
@media only screen and (max-width: 767px) {
   .announcement-bar__message {
      line-height: 2;
   }
}
</style>

 

Hope this can help you,

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

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

starscream911
Explorer
52 0 14

Hello! 

Line-up is okay but it still has a gap between the top of the bar and the page while scrolling.

Suggest me a code for this gap.

BSSCommerce-HDL
Shopify Partner
2305 835 907

This is an accepted solution.

Hi @starscream911

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (max-width: 767px) {
 .shopify-section.shopify-section-group-header-group.announcement-bar-section {
    transform: translateY(-1px);
    padding-top: 1px; 
  }
}
</style>

Hope this can help you,

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

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now