contacts

(+359) 88 339 4445

Buy All 40 Premium WordPress Themes for $54.99

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.

Leave a Reply