Created
May 7, 2021 06:14
-
-
Save divienginesupport/aeb855de77a7b19c70a45a9356123794 to your computer and use it in GitHub Desktop.
CSS to add Title and Price Overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* Hover Price and Title in overlay */ | |
.et_overlay .woocommerce-loop-product__title, | |
.et_overlay .price, | |
.et_overlay .loop-title-item, | |
.et_overlay .loop-title-price { | |
text-align: center; /* Centers the Title and Price */ | |
position: absolute; | |
width: 100%; | |
} | |
/* Hover Title Position from Top */ | |
.et_overlay .woocommerce-loop-product__title, | |
.et_overlay .loop-title-item { | |
top: 5%; /* Change this value */ | |
} | |
/* Hover Price Position from Top */ | |
.et_overlay .price, | |
.et_overlay .loop-title-price { | |
top: 80%; /* Change this value */ | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment