Question: How to Bold text of product name in collection page?
theme: sense
A user seeks to bold product names on collection pages in the Shopify Sense theme without affecting other text elements.
Initial Solutions Attempted:
font-weight: 600 to .full-unstyled-link CSS classfont-weight: 900 to .section-template--[ID].collection-main-grid-padding .product-card__heading in base.css/style.css/theme.cssProblem Encountered:
Both approaches inadvertently bolded the collection name as well, which was undesirable.
Refined Solution:
Target only product cards by using the .product-card-wrapper .full-unstyled-link selector:
font-weight: 600 from the general .full-unstyled-link class.product-card-wrapper .full-unstyled-link { font-weight: 600; }This approach isolates the styling to product card links only, preventing the collection name from being affected. The discussion includes screenshots demonstrating the issue and solution, with code snippets provided for implementation in the theme’s CSS files.
Question: How to Bold text of product name in collection page?
theme: sense
Hi @rzwahmed
check this one.
.section-template--19171982442778__main-collection-product-grid-padding .card__heading {
font-weight: 900 !important;
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Its worked, but
it’s also bold collection name!!!, that is not looking good. see pic
I don’t want to bold collection name,
I only want to bold product name
Hi @rzwahmed ,
If you want to apply these changes exclusively to product cards, you can identify the unique class for the product card, which in this case seems to be product-card-wrapper. You can modify the CSS as follows:
Remove the font-size: 600; from the .full-unstyled-link class:
.full-unstyled-link{
text-decoration: none;
color: currentColor;
display: block;
font-weight: 600; // Remove this from here
}
Then, add the following CSS declaration after the .full-unstyled-link:
.product-card-wrapper .full-unstyled-link{
font-size:600;
}
Hope! this will helps you.
Hi @rzwahmed ,
If you want to apply these changes exclusively to product cards, you can identify the unique class for the product card, which in this case seems to be product-card-wrapper. You can modify the CSS as follows:
Remove the font-size: 600; from the .full-unstyled-link class:
.full-unstyled-link {
text-decoration: none;
color: currentColor;
display: block;
font-weight: 600; // Remove it
}
Then, add the following CSS declaration after the .full-unstyled-link:
.product-card-wrapper .full-unstyled-link{
font-weight:600;
}
Hope! This will helps you.