Shopify themes, liquid, logos, and UX
I want to achieve a similar affect to this image where only on desktop the prices and title appear in the middle of the product image when hovered and the image goes slightly white. I only want this to occur on desktop and stay the same as it is on mobile.
How can I achieve this,
Joe
my website is f22london.com and password is password123
Hi @f22london1 !!
I faced the same issue you are facing right now. For this you need to know the theme customization. But I do not have the knowledge of that earlier. So I came up with an silly idea which worked for me.
When you add product you can add an image which contains prices and title appear in the middle of the product. and tick "Show second image on hover".
This method has many issues which will arise when changing the price, in your case it will also appear in mobile also.
Through it is not the solution but this will buy you some time.
Does this mean you can hide the price below, and the photo which comes on the listing
Hi @f22london1
We've carefully checked your problem and found that it's quite complicated. So we suggest hiring a developer.
It's what we can help with an optimal solution. If you need help from our expert, kindly share your request with us via Shopify experts: https://experts.shopify.com/bss-commerce/services?utm_source=Shopify+Community&utm_medium=Post+reply...
We will check it and give you a detailed solution. We're looking forward to working with 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
fair - what are you rates
Hey @f22london1,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
@media only screen and (min-width: 990px) {
.card.card--standard.card--media {
position: relative !important;
}
.card.card--standard.card--media:hover:before{
background-color: rgba(255,255,255, 0.4) !important;
content: '' !important;
width: 100% !important;
height: 100% !important;
display: block !important;
position: absolute !important;
z-index: 2 !important;
}
.card__content {
position: absolute !important;
display: flex;
justify-content: center;
align-items: center;
width: 100% !important;
opacity: 0 !important;
z-index: 3 !important;
height: 100%;
}
.card.card--standard.card--media:hover .card__content {
opacity: 1 !important;
}
.card__content * {
text-decoration: none !important;
text-align: center !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hi this works would this be possible to do with the triangles on my home page aswell ?
Hey @f22london1,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
@media only screen and (min-width: 990px) {
.multicolumn-card.content-container {
position: relative !important;
}
.multicolumn-card__info {
position: absolute !important;
height: 100% !important;
width: 100% !important;
top: 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
opacity: 0 !important;
z-index: 3 !important;
}
.multicolumn-card.content-container:hover .multicolumn-card__info {
opacity: 1 !important;
}
.multicolumn-card.content-container:before {
content: '' !important;
transition: all 200ms !important;
}
.multicolumn-card.content-container:hover:before {
content: '' !important;
height: 100% !important;
width: 100% !important;
position: absolute !important;
left: 0 !important;
top: 0 !important;
background-color: rgba(255,255,255,0.4) !important;
z-index: 2 !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Thankyou this worked perfectly, Is there a way I can make the the text in the centre of the triangles on desktop much larger so it is more visible but remain 10 px on desktop and aswell can the opacity of the triangles be much greater as to emulate the opacity on palaceskateboards.com
In the previous code I gave you the circled part is the intensity of the opacity, 0 means 0% and 1 means 100%. Change however you want.
For the font size, just paste this code
<style>
@media only screen and (min-width: 990px) {
.multicolumn-card .multicolumn-card__info a {
font-size: 20px !important;
}
}
</style>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025