Using Shortcode To Show Badge

⌘K

Using Shortcode To Show Badge

In some rare cases, badges don’t appear on a website. The main reason is your theme may have customized the Woocommerce template files without following Woocommerce guidelines & didn’t use Woocommerce proper hook.

In case you have this problem, you can use our pre-made shortcode to show a badge on both product single and catalog pages.

But to do this, you must have to have some basic knowledge about WordPress theme customization or asks your developer to do this for you.

Shortcode for single page: <?php echo do_shortcode(‘[woo_pro_badges_extended]’); ?>

Shortcode for catalogue page: <?php echo do_shortcode(‘[woo_pro_badges_catalogue_extended]’); ?>

Place these shortcodes anywhere in your Woocommerce content file, and it should work. Feel free to let us know if you have any problems.

Was this article helpful to you? No Yes 1

How can we help?