Use shortcodes in the text widget

On WordPress, by default, shortcodes don’t work in text widgets.

If at some point you need to use a shortcode in the text widget you can enable this functionality by editing the theme’s functions.php file and paste this

 
add_filter('widget_text', 'do_shortcode');
 
at the bottom of the file, if the functions.php ends in a PHP closing tag ?> you paste the code just above it.

Use the coupon code WORDPRESS and get 30% off any purchase - Buy Now!