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
Excursionist
19 0 11

 

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
2091 742 936

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  😍

 

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

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
2091 742 936

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 😍

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

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 6 (6)

goldi1
Excursionist
125 10 23

Hello @starscream911 

can you share the store url ??

so i can fix it 

thanxx 

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Whatsapp Me : here
starscream911
Excursionist
19 0 11
goldi1
Excursionist
125 10 23

Okay so the solution would be

 

apply this code in theme>> Edit Code >> base.css at the bottom of the file . It would fixed

 

<style>
@media only screen and (max-width: 767px) {
   .announcement-bar__message {
      line-height: 1.8;   }
.announcement-bar-section {
     top: -1px !important;
}
}
</style>

 

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Whatsapp Me : here

BSSCommerce-HDL
Shopify Partner
2091 742 936

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  😍

 

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

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
Excursionist
19 0 11

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
2091 742 936

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 😍

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

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