Special Offer: Get All 151 Premium WordPress Themes for Just $99.99 $59.99 Purchase Now Learn more

Enable Shortcode in Widget

By default, if you insert a shortcode into widget it will be displayed as plain text instead of the expected display when it’s being inserted in post or page.

1.Login to your Admin Panel

2. Navigate to Left Menu -> Appearance -> Theme Editor

3. Open functions.php

4. Insert the following code (i.e. at the end of the file above the last occurrence of ‘?>’ at the end of the file):

add_filter( 'widget_text', 'do_shortcode' );

5. Save change

Now, every shortcode inserted into widget as plain text in any widget will work as expected.