All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello!
I'm currently using the spotlight theme and would like to make the title and price of products hidden until you hover over the image. Upon hovering, the title and price would show on top of the image.
I've tried other codes provided for similar questions but have not had any luck. (Also very new to shopify and not well-versed in backend code, so could be user error.)
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @sggallery
I'm Dan from Ryviu: Product Reviews Q&A.
You can do that by adding this code to your theme.liquid file, after <head> in Online Store > Themes > Edit code
<style>
@media (min-width: 768px) {
.card--standard>.card__content { opacity: 0; }
.card--standard:hover>.card__content {
opacity: 1 !important;
}
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Hi @sggallery
I'm Dan from Ryviu: Product Reviews Q&A.
You can do that by adding this code to your theme.liquid file, after <head> in Online Store > Themes > Edit code
<style>
@media (min-width: 768px) {
.card--standard>.card__content { opacity: 0; }
.card--standard:hover>.card__content {
opacity: 1 !important;
}
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Thank you so much!
I would like for the title and price to show up on the image, instead of underneath. Is this possible?
Hi @sggallery ,
This is Theodore from PageFly - Shopify Page Builder App.
To hide product titles and prices until hovering over the image in your Spotlight theme, follow these steps:
Go to Online Store > Themes > Actions > Edit code (Spotlight theme).
Open the product-card.liquid file in the Assets folder.
Add the provided CSS code and save your changes.
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Thanks for your response! A few questions below. (I'm very new to this all, clearly 😊 )