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 Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.
Get access to all 525 Bricks code tutorials with BricksLabs Pro
Related Tutorials..
Pro
How to Modify Products Element Query in Bricks to Output Child Products
This Pro tutorial provides the steps to limit WooCommerce products output by Bricks' Products element on single product pages to only the children of the…