Re: How do I get my announcement bar not to be transparant?

Solved

How do I get my announcement bar not to be transparant?

Muselabel
Excursionist
30 0 4

Hello,

I made my header transparent, but now my announcement bar is also transparent. How do I get rid of this?

 

Foto 13-07-2024 om 15.22.jpeg

 

I used this code:

  1. {% if template == 'index' %}
  2.  
  3. <style>
  4. .shopify-section-group-header-group.announcement-bar-section{
  5. height: 5px;
  6. }
  7. .header-wrapper{
  8. position: absolute;
  9. width: 100%;
  10. background: transparent;
  11. }
  12. .header-wrapper .header{
  13. margin-top: 20px;
  14. }
  15. </style>
  16.  
  17. {% endif %}

 

The link of my store: https://muselabel.nl/ 

Accepted Solutions (2)

pawankumar
Shopify Partner
592 83 102

This is an accepted solution.

Hi @Muselabel 
Please remove this code

.shopify-section-group-header-group.announcement-bar-section{
height: 5px;
}

and then it will look like this

pawankumar_0-1720877440567.png

I hope, it will help you
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

View solution in original post

BSS-TekLabs
Shopify Partner
2077 614 718

This is an accepted solution.

Hi @Muselabel,

You can follow these steps to make the effect

1. Open Online Store > Theme > Edit Code

2. Find and open the base.css (or theme.css, custom.css) file

3. Paste the code snippet below at the bottom of the file and hit save

 

#shopify-section-sections--22841790234948__announcement_bar_KFVM8G {
    height: auto;
}

 

 

Here is the result

BSSTekLabs_0-1720877858390.png

Hope this helps you solve the issue.

Please don't forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!

 

 

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)

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

View solution in original post

Replies 3 (3)

pawankumar
Shopify Partner
592 83 102

This is an accepted solution.

Hi @Muselabel 
Please remove this code

.shopify-section-group-header-group.announcement-bar-section{
height: 5px;
}

and then it will look like this

pawankumar_0-1720877440567.png

I hope, it will help you
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
Muselabel
Excursionist
30 0 4

Thank you very much! It worked.

BSS-TekLabs
Shopify Partner
2077 614 718

This is an accepted solution.

Hi @Muselabel,

You can follow these steps to make the effect

1. Open Online Store > Theme > Edit Code

2. Find and open the base.css (or theme.css, custom.css) file

3. Paste the code snippet below at the bottom of the file and hit save

 

#shopify-section-sections--22841790234948__announcement_bar_KFVM8G {
    height: auto;
}

 

 

Here is the result

BSSTekLabs_0-1720877858390.png

Hope this helps you solve the issue.

Please don't forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!

 

 

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)

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