Make price bigger

Topic summary

A user wants to increase the product price font size on mobile devices only. They shared a code snippet from their product page template.

Solutions Provided:

Two support teams offered identical CSS-based solutions:

  • Navigate to Shopify Admin → Online Store → Themes → Actions → Edit Code
  • Locate the base.css or theme.css file in the Assets folder
  • Add the following CSS at the end of the file:
@media only screen and (max-width: 600px) {
  .price-item.price-item--regular, .price.price-item {
    font-size: 24px !important;
  }
}

Status: The issue appears resolved with working CSS code provided. Both solutions use a media query targeting screens up to 600px width and increase the price font size to 24-25px with !important to override existing styles. Screenshots were included showing the implementation steps and expected results.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Hi,

I want to make my pricing bigger for mobile only in this piece of code. How can i do this?

div class="large-up-hide medium-hide product-infomation">
    
      # {{ product.title | escape }}
      
        ## 
          {{ product.title | escape }}
        
      
    

    
      {%- render 'price',
        product: product,
        use_variant: true,
        show_badges: true,
        price_class: 'price--large'
      -%}
    

    {%- if product.quantity_price_breaks_configured? -%}
      
        {{ 'products.product.volume_pricing.note' | t }}
      

    {%- endif -%}
2 Likes

Hello There,

Please share your store URL and password.
So that I will check and let you know the exact solution here.

Hello @VinUp .
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.

You can use this URL: https://vinup.nl/en/products/springsteel

You can use this URL: https://vinup.nl/en/products/springsteel

1 Like
  • Here is the solution for you @VinUp
  • Please follow these steps:

  • Then find the base.css or theme.css file.
  • Then add the following code at the end of the file and press ‘Save’ to save it.
@media only screen and (max-width: 600px) {
.price--on-sale .price-item--regular, .price .price-item {
     font-size: 24px !important;
}
}
  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.
1 Like

Hi @VinUp

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > base.css and paste this at the bottom of the file:
@media only screen and (max-width: 768px) {
.price--on-sale .price-item--regular, .price .price-item {
font-size: 25px !important;
}
}