This Pro tutorial provides the steps to show a "OUT OF STOCK" ribbon for WooCommerce products that are output via the Bricks' Products element on listing pages like the Shop page and product category/tag archives.
Step 1
Let's register a custom function for our ribbon.
Add the following in your child theme's functions.php or a code snippets plugin like WPCodeBox:
Sridhar Katakam is a WordPress expert with more than 12 years of experience. Sridhar is the founder of WPDevDesign and BricksLabs. He lives in Melbourne, Australia.
Brian Lovelace
Would love to see the same, but for a ‘Sale’ badge within a custom query loop ๐ Thanks Sridhar!
Sridhar Katakam
Done.
https://brickslabs.com/on-sale-ribbon-for-woocommerce-products-query-loop-in-bricks/