change size announcement bar mobile only

change size announcement bar mobile only

EdensBakehouse
Excursionist
21 0 9

I would like to change the font size of my announcement bar MOBILE ONLY.

Desktop size is good.

 

edensbakehouse.nl

yuidri

 

EdensBakehouse_0-1736543373900.png

 

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
9579 2280 2829

Hi @EdensBakehouse 

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:

 

p.announcement-bar__message.h5 span {
    font-size: 12px;
}

 

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

    If you like to add the boldness, to make it readable use this code. 

 

p.announcement-bar__message.h5 span {
    font-size: 12px;
    font-weight: bold;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_1-1736543762234.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 ⚙️.
EdensBakehouse
Excursionist
21 0 9

This also changes the size of the announcement bar for desktop.

I requested a change for MOBILE ONLY!

EstherBui
New Member
106 9 13

Hi @EdensBakehouse 

 

You can follow this instruction:

1. Go to Shopify > Theme > Customize

2. Copy and paste this code on Theme settings > Custom CSS section

@media screen and (max-width: 768px){
p.announcement-bar__message span {
    font-size: 12px !important;
}
}

 

Result: 

 

EstherBui_0-1736599443531.png

 

 

 

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