Change font size for announcement bar on mobile

Solved

Change font size for announcement bar on mobile

ads18922
Explorer
94 0 34

I want to change my font size for the announcement bar on mobile but not mobile. Also I would like to change the text so that it is bold:

Screenshot 2024-11-05 at 16.54.29.png

I want to change it from this, to something like this:

IMG_1890.jpg

I am using dawn theme

This is my store domain: qmpryp-cx.myshopify.com

and this is my password: chasha
Accepted Solution (1)

Moeed
Shopify Partner
6530 1773 2144

This is an accepted solution.

Hey @ads18922 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.announcement-bar__message {
    font-size: 8px !important;
    min-height: 0 !important;
    font-weight: bold !important;
}
}
</style>

RESULT:

Moeed_0-1730826395469.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
6530 1773 2144

This is an accepted solution.

Hey @ads18922 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.announcement-bar__message {
    font-size: 8px !important;
    min-height: 0 !important;
    font-weight: bold !important;
}
}
</style>

RESULT:

Moeed_0-1730826395469.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
9518 2264 2816

Hi @ads18922 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
p.announcement-bar__message.h5 {
    font-size: 1.5rem;
    font-weight: 900;
}
}

 

  • And Save.
  • Result:
    Made4uoRibe_0-1730826457576.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.