Buy All 118 Premium WordPress Themes for $59.99
No Additional Fees, Pay Once and Use Unlimited Time for Unlimited Domains, Free Lifetime Updates

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