change size announcement bar mobile only

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

Desktop size is good.

edensbakehouse.nl

yuidri

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;
}
p.announcement-bar__message.h5 span {
    font-size: 12px;
    font-weight: bold;
}

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

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

I requested a change for MOBILE ONLY!

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: