change font size of announcement bar desktop

Solved

change font size of announcement bar desktop

ads18922
Explorer
101 0 34

hello, i want to change the font size of my announcement bar for desktop, but keep it the same for mobile

Screenshot 2025-01-09 at 11.20.55.png

website is www.marcomontesi.com , theme is dawn

Accepted Solution (1)

DaisyVo
Shopify Partner
2834 339 394

This is an accepted solution.

HI @ads18922 

 

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.

 

@media screen and (min-width: 1024px){
p.announcement-bar__message {
    font-size: 20px !important;
}
}

 

Here is the result: image_720.png

 

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 5 (5)

Dan-From-Ryviu
Shopify Partner
10793 2133 2251

Hi @ads18922 

Please add this code to Custom CSS in Sale Channels > Online Store > Themes > Customize > Theme settings. 

@media (min-width: 750px) {
html p.announcement-bar__message.h5 {
    font-size: 12px;
}
}

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

rifat_Shop
Shopify Partner
94 11 12

@ads18922 hi hope you are well,
please use this css on base.css file on your theme

 

p.announcement-bar__message.h5 {
    font-size: 20px !important;
}

 

rifat_Shop_0-1736422102170.png

rifat_Shop_1-1736422113993.png



update size base on px

please let us know
Thank you



Found it helpful? Please like and mark the solution that helped you.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers

DaisyVo
Shopify Partner
2834 339 394

This is an accepted solution.

HI @ads18922 

 

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.

 

@media screen and (min-width: 1024px){
p.announcement-bar__message {
    font-size: 20px !important;
}
}

 

Here is the result: image_720.png

 

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

sadik_ShopiDevs
Shopify Partner
19 2 3
Hi @ads18922 
Please follow the steps
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:

 

<style>
@media screen and (min-width: 990px) {
    p.announcement-bar__message.h5 {
        font-size: 20px;
    }
}
</style>

 

Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a
solution. Thank you 😍
Found it helpful? Please like and mark the solution that helped you.
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers

Rahul_dhiman
Shopify Partner
725 142 149

Hello @ads18922 
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.

@media only screen and (min-width: 750px) {
h5, .h5 {
font-size: calc(var(--font-heading-scale)* 1.7rem);
}
}

result
129.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639

Checkout Apps by me