Hi
I added this PHP and CSS code. PHP Snippet 1.
Then set a product to 0. Stock Management is tracked.
Under the category: TROMBOCYTTINKUBATORER – (KLIMASKAP)
Right clicked the product Climax 100. Noticed the code
HTML Class soldout has been added.
CSS has been added.
.soldout {
padding: 3px 8px;
text-align: center;
background: #222!important;
color: #000!important;
font-weight: 700;
position: absolute!important;
top: 6px;
right: 6px;
font-size: 12px;
opacity: 1!important;
display: block!important;
}
Why is the black box sold out just seen for a moment before it goes away?
What is going on?
I have been down this road before in an earlier support thread in regards to a search in WooCommerce.
Hey Silje,
Thank you for the inquiry.
The “soldout” container is being covered by the product image. You need to increase the z-index to adjust the stack order of the element.
.soldout {
padding: 3px 8px;
text-align: center;
background: #222!important;
color: #fff!important;
font-weight: 700;
position: absolute!important;
top: 6px;
right: 6px;
font-size: 12px;
opacity: 1!important;
display: block!important;
z-index: 100;
}
Best regards,
Ismael
Thank you very much!
I did not even think about the z-index. That worked well!
Hi SHR Design,
I’m glad that Ismael could help you :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko