Shopify themes, liquid, logos, and UX
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?
Solved! Go to the solution
This is an accepted solution.
slider-component .card__heading .full-unstyled-link, slider-component .card-wrapper .price-item {
font-size: 15px;
line-height: 19px;
}
@clementjaw001 Hey, thanks for posting here.
can you please share the link to inspect it, thanks.
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>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
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:
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
This is an accepted solution.
slider-component .card__heading .full-unstyled-link, slider-component .card-wrapper .price-item {
font-size: 15px;
line-height: 19px;
}
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.
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!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024