onsale class – want to add a ribbon but needs DIV wrapper
-
Hello. I wish to enhance the “onsale” indicator with a fancy CSS Banner but cannot, since it’s presented only with a SPAN and applied class “onsale”.
This is the ribbon I wish to employ:
cssportal.com/css-ribbon-generator/In both directories:
\woocommerce\templates\loop\sale-flash.php
\woocommerce\templates\single-product\sale-flash.phpAt Present, WC creates it as such:
'<span class="onsale">'.__('Sale!','woocommerce').'</span>'
My request is to wrap the SPAN in a DIV, to allow devs to enhance the On-Sale indicator, as such:
My Suggestion:
'<div class="onsale-wrapper"><span class="onsale">'.__('Sale!','woocommerce').'</span></div>'
Thanks for considering it.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘onsale class – want to add a ribbon but needs DIV wrapper’ is closed to new replies.