I am trying to show only the product pictures on home page in the featured collection section. Currently it also displays price and product name. I would like only the square picture to be displayed.
@12388 - this will need custom css for this part, can you please share your website link?
Hii @12388
Welcome to the Shopify community!
Thanks for your good question.
kindly share your store URL, so that
I will check out the issue and provide a solution.
Hi @12388 ,
Please share your store URL and if your store is password protected then please provide password too.
So that we can help you.
Thank you.
@12388 - add this css to the end of your base.css file and check
#shopify-section-template--15366688211140__featured_products .card--standard .card__content .card__information {
display: none;
visibility: hidden;
}
Hi @12388 ,
You can follow the instruction below:
- Go to Online Store->Theme->Edit code
- Asset->/base.css->paste below code at the bottom of the file:
#shopify-section-template--15366688211140__featured_products .card--standard .card__inner:before {
padding-bottom: 100%;
}
#shopify-section-template--15366688211140__featured_products .card--standard .card__inner img {
object-fit: contain;
}
#shopify-section-template--15366688211140__featured_products .card--standard .card__content {
display: none !important;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
That did remove the price and description, but now when I click the picture it doesn’t take me to the product. Is it possible to make it so when I hover over the image it shows the price and description, or at least when I click the image it takes me to the product page.
That did remove the price and description, but now when I click the picture it doesn’t take me to the product. Is it possible to make it so when I hover over the image it shows the price and description, or at least when I click the image it takes me to the product page.
Hi @12388 ,
If you want show price and description, you need to remove my previous css:
#shopify-section-template--15366688211140__featured_products .card--standard .card__content {
display: none !important;
}
Thanks
@AVADA
No I want only the picture to show on the homepage, but I still want the link to the actual product page to work. When I used your code, the price and description went away like I wanted but I was no longer able to click the picture to go to the products actaul page.
Hi @12388 ,
YOu try below code:
.card--standard>.card__content .card__information .full-unstyled-link {
font-size: 0 !important;
}
.card-information {
display: none !Important;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.