hey, i would like to change to font size of the prize for mobile layout only
can you help me?
url: sixdreamz.com
password: sdc2003
A user wants to reduce the price font size on mobile devices only for their Shopify store.
Multiple solutions provided:
• Option 1 (theme.liquid): Add CSS code in a <style> tag before the </body> tag in theme.liquid, targeting .price__regular .price-item--regular with font-size: 12px !important within a @media screen and (max-width: 767px) query.
• Option 2 (component-price.css): Navigate to Assets > component-price.css and add similar CSS at the end of the file using @media screen and (max-width: 749px).
• Option 3 (base.css): Add the CSS code to Assets > base.css at the bottom, targeting .price-item.price-item--regular with font-size: 10px !important within a @media screen and (max-width: 767px) query.
All solutions use media queries to apply changes exclusively to mobile viewports, with slight variations in file location, breakpoint width (749px vs 767px), and font size (10px vs 12px). Screenshots showing results were included by some responders.
hey, i would like to change to font size of the prize for mobile layout only
can you help me?
url: sixdreamz.com
password: sdc2003
Hello @sixdreamz
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
HEllo @sixdreamz
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> component-price.css
add this code at the end of the file.
@media screen and (max-width: 749px) {
.price__regular .price-item--regular {
font-size: 12px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
@sixdreamz ,
Step 1: Go to Admin → Online store → Theme > Edit code
Step 2: Search for the file theme.liquid
Step 3: Add this code before tag
Result:
Hello There,
@media screen and (max-width: 767px){
.price-item.price-item--regular {
font-size: 10px !important;
}
}