This topic has 2 replies, 2 voices, and was last updated 4 hours, 51 minutes ago ago by Rose Tyler
Good afternoon, I wonder if you could help me. How can I put a label that the product is out of stock in the center of the product picture? How to do it in the product archives and in the elementor widget?
Hello, Denurade,
Thank you for reaching out to us. We would be happy to assist you with your query.
Please try to use this custom CSS code:
.etheme-product-grid-item .stock.out-of-stock {
position: absolute;
text-align: center;
background-color: rgba(255, 255, 255, .9);
z-index: 1;
margin-bottom: 0;
font-size: .85rem;
text-transform: uppercase;
color: var(--et_dark-color);
left: 50%;
top: -70%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding: 7px 14px;
}
Best regards,
8Theme’s Team
You must be logged in to reply to this topic.Log in/Sign up