simple plugin that displays 'new style on products that were published in the last x years.
X is defined on the tab of WooCommerce settings screen..
Upload woocommerce-new-product-badge to the wp-content plugins directory.
Activate the plugin through 'Plugins in WordPress.
Define how 'new products will be in years to receive the 'new style on the tab of WooCommerce settings screen..
I want to style the badge myself how do I remove the default styles.
There are only couple of badges used to the badge.
However if you want to do well you can either dequeue the css. add action 'wp enqueue scripts 'remove new badge styles 30 part remove new badge styles { wp dequeue style 'nb-styles }.
Thank you to the text for their contributions..
Browse the code recheck out SVN repository or subscribe to the development log RSS....
Read more