What's your biggest current challenge? Have your say in Community Polls along the right column.

Remove space between announcement bar and header

Remove space between announcement bar and header

Ofinomics
New Member
7 0 0

Hi there!

I would like to remove space between sticky announcement bar and header (https://ofinomics.com/😞

Ofinomics_0-1703783867066.png

I have already tried to reduce padding in base.css and theme.liquid but it wasn't efffective.

 

Can someone help me? I would appreciate it very much.

 

Thanks in advance,

Ofinomics

 

Replies 7 (7)

niraj_patel
Shopify Partner
2378 514 507

Hello @Ofinomics 

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>

    .localization-wrapper {
        justify-content: flex-start !important;
     }

</style>

techlyser_web_0-1703786345957.png

 

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
Ofinomics
New Member
7 0 0

Hi @niraj_patel,

 

Thanks a lot for your response, but after posting your code, the web appears the same.

 

niraj_patel
Shopify Partner
2378 514 507

Hello @Ofinomics 
Actually I made a mistake in understanding your question, I apologize for this.

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>

    .localization-wrapper {
        justify-content: flex-end !important;
     }

     .section-header {
       top: 3px !important;
      }
     .header {
         padding: 0 3rem !important;
      }

</style>

techlyser_web_0-1703832529691.png

 

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
Ofinomics
New Member
7 0 0

Thanks again for your effort on this! It fixed the space between header and announcement bar but now it seems like header is sticky but announcement bar it is not.

PageFly-Henry
Shopify Partner
1184 335 292

Hi @Ofinomics 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

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

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save

 

body div#shopify-section-sections--19412699808074__header {

    top: 38px !important;

}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Ofinomics
New Member
7 0 0

Thanks a lot! It fixed the bug 😊

Ofinomics
New Member
7 0 0

Sorry again @PageFly-Henry , but now the problem is that the language and location selector menu appears behind the header... I have already tried to change the z-position of the announcement bar but it doesn't work. Could you please help on this? Thanks in advance again!

 

Ofinomics_0-1703851036174.png