Hi, how do you make the font size for the pricing on the mobile version smaller? It only has to be for the pricing at the top just below the rating. The website is: https://vinup.nl/en/products/vinyl-record-rack
Topic summary
A user seeks to reduce the font size of product pricing on mobile devices, specifically for the price displayed below the rating on their product page.
Multiple CSS Solutions Provided:
Several respondents offered similar approaches, all involving adding custom CSS to the base.css file:
- Target the
.price-item--regularclass within a media query for mobile screens (max-width: 600px or 768px) - Use
!importantto override existing styles - Adjust
font-sizeto smaller values (15px, 16px, or 1.6rem)
Implementation Steps:
- Navigate to Online Store > Themes > Actions > Edit Code
- Open Asset > base.css
- Paste the provided CSS code at the end of the file
Screenshots demonstrate the expected visual result with reduced pricing font size on mobile. The discussion remains open with no confirmation from the original poster about which solution was implemented or whether the issue was resolved.
Hi @VinUp
- You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file
@media (max-width: 768px) {
s.price-item.price-item--regular {
font-size: 15px !important;
}
}
Result:
Best,
Liz
Add This Code In Edit Code > Base.css File
@media only screen and (max-width: 600px) {
body .product .price--on-sale .price-item--regular, body .product .price .price-item {
font-size: 16px !important;
}
}
Hello @VinUp ,
Here are the steps to apply the necessary changes in your Shopify store:
- In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
- Locate Asset > base.css and paste the following code at the bottom of the file:
@media screen and (max-width:768px){
.price-item.price-item--regular {
font-size: 1.6rem !important;
}
.price.price--large.price--on-sale.price--show-badge span {
font-size: 1.6rem !important;
}
}
Let me know if you need further assistance!
Add this code in edit code > base.css and add this code at the end of the file
@media only screen and (max-width: 600px) {
body .product .price--on-sale .price-item--regular, body .product .price .price-item {
font-size: 16px !important;
}
}


