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.

Pssst. We are on Themeforest too! Check out our exclusive themes.

Use the coupon code SUMMERCLUB and get 30% off! - Buy Now!