I’m trying to optimize some of the font sizes on mobile. I’m using Dawn 15.0. I’ve successfully changed the font of the price on product cards with code in assets/base.css but the same method isn’t working when I try to adjust them for mobile. I’ve successfully changed other fonts and their size on desktop/mobile, so I’m a little confused why it suddenly doesn’t work in this case.
My code:
@media screen and (max-width: 768px){
.price,
.price__regular,
.price__sale,
.price_item {
font-size: 8px !important;
}
}
Thank you for your time.
Hey @BlueJackal could you please share the store URL so that I take a look and provide you solution code based on your theme file classes.
Thanks
Thank you for replying. I’m working on a draft theme, so here is the preview link: https://qbaewr503muue6lw-67686367540.shopifypreview.com
Instead of using the previous code consider using this code. Your previous code couldn’t target the price of the product.
@media only screen and (max-width: 768px){
.price__regular .price-item--regular{
font-size: 8px !important;
}
}
Paste this code in the component-price.css theme file.
You can use this css, this css is used in your theme for app card. By modifing this you can put in your theme.css It will work
@media only screen and (max-width: 768px){
.price__regular .price-item--regular,
.price__sale,
.proce-item--last{
font-size: 8px !important;
}
}
Let us inform anything else you need.
Thank you
Hi @BlueJackal
Thank you for reaching out to the Shopify community. I’d be glad to assist you. Could you kindly share your store URL and password (if it’s password-protected) so I can review it and provide you with an update? Attach pictures so I can better understand your problem.
Hi @BlueJackal
Just a quick check in, do you still need help? If yes, please share your store URL so I can take a closer look
Best,
Daisy