Hi all, seeking help on the following to move Create Hover + Reveal Custom Text —> Center on Image Banner
DESIRED EFFECT: https://khaite.com/collections/sale
PROBLEM: the code I’ve added to CUSTOM CSS, allows the text to be placed on the product card. However, I want this to be revealed on hover instead. This code also prevents the image from being clickable so it does not direct to a product page until the Product Title is clicked.
".card.card–card.card–media.color-scheme-9ddc554f-41d4-40dd-a8af-da0f57f74958.gradient {
position: relative;
}
.card__content {
position: absolute;
bottom: 0;
}"
DESIRED GOAL: CENTERED TEXT, PRODUCT INFO/SIZING AVAILABILITY REVEALED ON HOVER
Hi @skymochi
You can try to update your code to this version and check again
.card.card--card.card--media.color-scheme-9ddc554f-41d4-40dd-a8af-da0f57f74958.gradient {
position: relative;
}
.card__content {
position: absolute;
bottom: 0;
opacity: 0;
}
.card:hover .card__content {
opacity: 1;
}
1 Like
hy, @skymochi
Go to Online Store
2) Edit Code
3) Find theme.liquid file
- Add the following code in the bottom of the file above tag.
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Hey Dan,
This worked! However, I’m running into the issue that you can no longer click the image to direct to the product page. You have to click the product title which I feel, isn’t intuitive.
- Any solutions to this?
- Any solutions to center the Text?
Could you drop your store link so I can check and give you the solution?
Hi, this didn’t seem to have any effect on my shop!
Is there another code that may mitigate this?
past this code in base.css file
.category-product__info__split {
display: flex !important;
align-items: center !important;
}
.category-product__right {
margin: 0px !important;
}
.available-sizes.category-product__sizes {
text-align: center !important;
}
Please update your code to this one and check
1 Like
Thanks, Dan, you’re very talented! Works great