What's your biggest current challenge? Have your say in Community Polls along the right column.

Decrease the font size of product title and price font size under collection

Solved

Decrease the font size of product title and price font size under collection

clementjaw001
Shopify Partner
25 0 2

I want to decrease the font size for my product title and price under collection for display on the home page. Can anyone have the experience to make these changes?

 

my feature.png

Accepted Solution (1)

Vinsinfo
Shopify Partner
460 158 157

This is an accepted solution.

@clementjaw001 

Please find the below steps to reduce font size of product title and price in dawm theme. Let me know whether it is helpful for you.
 
1. From admin, Go to "Online Store" -> "Themes"
2. Click "Customize" button in the current theme.
3. In "Home page", search for the respective "Featured collection" section like in the below attached screenshot and click to edit.
Vinsinfo_0-1724306179794.png
4. Search for the "Custom CSS" field at the bottom of the section and add the below code to the field like in the below attached screenshot.

 

slider-component .card__heading .full-unstyled-link, slider-component .card-wrapper .price-item {
    font-size: 15px;
    line-height: 19px;
}

 

Vinsinfo_1-1724306187457.png

 

FYI: If you want to still decrease the font-size, you can modify the font-size value as per your need.
 
The final result will be like,
Vinsinfo_2-1724306196603.png

 

Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support

View solution in original post

Replies 6 (6)

ProtoMan44
Shopify Partner
615 54 93

@clementjaw001 Hey, thanks for posting here.
 can you please share the link to inspect it, thanks.

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!

niraj_patel
Shopify Partner
2378 514 507

Hello @clementjaw001 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (min-width: 750px) {
   .so-homepage .section-template--18230638575866__featured_collection_YqTcxK .card--standard > .card__content .card__information .card__heading a {
       font-size: 15px !important; /*adjust according to you*/
    }
     .price .price-item {
        font-size: 14px !important; /*adjust according to you*/
     }
}
</style>

niraj_patel_0-1724303945285.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

BSSCommerce-HDL
Shopify Partner
2305 834 908

Hi @clementjaw001

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>
.collection .card__heading a {
    font-size: 14px !important;
}

.collection .price .price__regular {
    font-size: 16px !important;
}

.collection .price .price__sale {
    font-size: 14px !important;
}
</style>

 

Here is result: 

BSSCommerceHDL_0-1724303947026.png

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 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Vinsinfo
Shopify Partner
460 158 157

This is an accepted solution.

@clementjaw001 

Please find the below steps to reduce font size of product title and price in dawm theme. Let me know whether it is helpful for you.
 
1. From admin, Go to "Online Store" -> "Themes"
2. Click "Customize" button in the current theme.
3. In "Home page", search for the respective "Featured collection" section like in the below attached screenshot and click to edit.
Vinsinfo_0-1724306179794.png
4. Search for the "Custom CSS" field at the bottom of the section and add the below code to the field like in the below attached screenshot.

 

slider-component .card__heading .full-unstyled-link, slider-component .card-wrapper .price-item {
    font-size: 15px;
    line-height: 19px;
}

 

Vinsinfo_1-1724306187457.png

 

FYI: If you want to still decrease the font-size, you can modify the font-size value as per your need.
 
The final result will be like,
Vinsinfo_2-1724306196603.png

 

Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support
clementjaw001
Shopify Partner
25 0 2

Hi Vinsinfo,

 

Thanks,  it work, that's awesome!

I wonder if you can also advise on how to make the product title just display 2 rows in desktop and mobile view? Just like the screenshot for this store below? (This store only allows product titles to display 1 row, but for me, I prefer 2 rows.),  I also want the discount price and original price displayed in the same row as this store under desktop view. The color of the original price can be changed to green. 

Under mobile view, the after discounted price on top of the original price, and the font size is slightly bigger than the original price font size.

Just like this store  mobile view.

https://trendingcustom.com/

 

 

 

IMPROVE FEATURE COLLECTION DISPLAY.png

steve_michael2
Trailblazer
309 30 39

Hi @clementjaw001 , I hope you are doing well.

 

1. Go to Online Store -> Theme -> Edit code.
2. Find and open your theme.liquid file
3. In theme.liquid, paste the below code before </body> 

 

@media screen and (min-width: 750px) {
    .so-homepage .section-template--18230638575866__featured_collection_YqTcxK .card--standard > .card__content .card__information .card__heading a {
        font-size: 15px !important;
    }


.card-information>.price {
    font-size: 15px !important;
    }
}

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Crafting exceptional online experiences with innovative design and technology.

Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount