Change font size only in mobile view in announcement bar

Hey,

I just want to change the announcement bar font size only in mobile view. Below is the image of the text.https://0bc922.myshopify.com/

Store link:

1 Like

Hi @randomchikibum ,

You can just add the media query the code that I give you before on the other post. Like this.

@media only screen and (max-width: 750px){
#shopify-section-sections--19406554792258__announcement-bar p.announcement-bar__message.h5 {
    font-size: 25px;
}
}

Result:

I hope it help.

not working

Hi @randomchikibum

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the base.css file:
@media screen and (max-width: 550px) {

#shopify-section-sections–19406554792258__announcement-bar p.announcement-bar__message.h5 {font-size: 10px;}
}

Regards,

San

Hi @randomchikibum .

Follow These steps,

Go to the online store theme and go to base.css file paste the code mentiond below.

@media only screen and (max-width: 550px){
#shopify-section-sections--19406554792258__announcement-bar p.announcement-bar__message.h5 {
    font-size: 12px !important;
}

}

If I managed to help you then, don’t forget to Like it and Mark it as Solution!