Shopify themes, liquid, logos, and UX
How do I make the price and product name under the product appear? I had a past coder I worked with get rid of them/ or made them transparent.
URL:cureblame.com
PASS:dthdrv00
Solved! Go to the solution
This is an accepted solution.
Hello @cureblame ,
Please add the code at the bottom of the theme.liquid file before </body> tag and save.
<style>
.card__heading {
opacity: 2 !important;
}
.card-information > .price {
display: block !important;
}
</style>
I hope it will work.
Thank you.
Hello @cureblame
Welcome to Shopify Community.
Kindly please add below CSS in theme.liquid above </head> tag.
.card__heading {
opacity: 1;
}
body .card-information > .price {
display: block !important;
font-weight: 700;
}
OUTPUT:
Thanks
It didn’t work
Please remove the previous code and add the below code above </head> tag.
<style>
.card__heading {
opacity: 1;
}
body .card-information > .price {
display: block !important;
font-weight: 700;
}
</style>
it only shows the price
add important here:
.card__heading { opacity: 1 !important; }
it doesn't work above </head on theme.liquid . I tried, the code appears at the header
Can you share the screenshot of the code you added ?
This is an accepted solution.
Hello @cureblame ,
Please add the code at the bottom of the theme.liquid file before </body> tag and save.
<style>
.card__heading {
opacity: 2 !important;
}
.card-information > .price {
display: block !important;
}
</style>
I hope it will work.
Thank you.
Thanks, it worked but can you help me customize it and make it the text smaller
Hello @cureblame ,
I am glad the above-shared solution helps you.
Please add the below-mentioned for changing the font size.
[Place the code at the bottom of the theme.liquid file before </body> tag and save.]
<style>
.card__heading a {
font-size: 10px !important; /*This font-size will be applied on Product name */
}
.card-information .price {
font-size: 10px !important; /* This font-size will be applied on Product Price */
}
</style>
[Please feel free to change the px font size as per your requirements. ]
If it works as per your needs, please like & accept the solution.
Thank you.
@cureblame Please follow below steps to display product title and price. Let me know whether it is helpful for you.
.card__content .card__heading {
opacity: 1 !important;
}
.card__content .card-information .price{
display: block !important;
}
Result will be like,
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024