Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Make announcement bar more narrow (codes aren't working)

Solved

Make announcement bar more narrow (codes aren't working)

LightStyl
Excursionist
18 0 5

Hi all, I've been trying to reduce the size of the announcement bar on our website (www.plumeskin.com) and for whatever reason all the codes I find on here don't seem to be working when pasted after /body in the theme liquid.

Screenshot 2024-11-08 at 4.55.54 PM.png

 

Trying to basically reduce the space between the top and bottom of text by 30% or so. An example of a code I've tried is:

<style>

     .announcement-bar__message {
            padding-top: 10px !important;
            padding-bottom: 10px !important;
       }

</style>

Any advice on what to do or why that might not be working would be greatly appreciated. Using the Sense theme.

Accepted Solution (1)

DaisyVo
Shopify Partner
902 113 129

This is an accepted solution.

Hi @LightStyl 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

 

div.shopify-section.shopify-section-group-header-group.announcement-bar-section {
    height: 24px !important;
}
p.announcement-bar__message.h5 {
    padding: 0 !important;
}
.announcement-bar .slider-button {
    height: 20px !important;
}

 

 

Here is the result: https://prnt.sc/4IIqWmKgtkNP
 
I hope this helps
 
Best,
 
Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 2 (2)

kevinkarma55
Shopify Partner
101 11 11

Hi,

It is because you set the height to botton which is not allow you to reduce height of the bar, make change to following height and you should be good:

kevinkarma55_0-1731115661263.png

 

Please remember to Like & Mark Solution to the post if it helped you.
Thanks !
If you'd like to support me, you can Buy Me a Coffee
Need help with anything related to Frontend?
Checkout kevinkarma.me

DaisyVo
Shopify Partner
902 113 129

This is an accepted solution.

Hi @LightStyl 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

 

div.shopify-section.shopify-section-group-header-group.announcement-bar-section {
    height: 24px !important;
}
p.announcement-bar__message.h5 {
    padding: 0 !important;
}
.announcement-bar .slider-button {
    height: 20px !important;
}

 

 

Here is the result: https://prnt.sc/4IIqWmKgtkNP
 
I hope this helps
 
Best,
 
Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution