Single product offer style change
-
Hello, I wanted to change the “OnSale” look on a single product. The theme’s original is a elliptical one over the product photo and I changed it to the triangular that is shown on the related products. I altered the
.woocommerce span.onsale
and.woocommerce div.product div.images
css.
The only problem I cannot figure out is that the triangle is on a wrong /div (higher layer) and appears out of place and not ‘cut’ by the photo. How can I fix it?this is the CSS I altered on my child theme:
.woocommerce div.product div.images{ overflow:hidden; } .woocommerce span.onsale { border-radius: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset; font-size: 14px; height: 80px; line-height: 60px; margin: 0; min-height: 20px; padding: 40px 0 0; text-align: center; text-shadow: none; text-transform: none; top: -20px; transform: rotate(51deg); width: 140px; font-weight: bold; box-sizing: inherit; left: 80%; }
A second question is how can i have 4 products shown simultaneously on the featured carousel.
Thank you in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Single product offer style change’ is closed to new replies.