This week, I was working on a new website.  I was trying a different cocktail of plugins than I normally use.  I went to enter some short codes into the text widget like I had before.  To my horror, I found that it didn’t work.  The shortcodes appeared as text!

If you experienced this too, have no fear!  It is a really simple fix.  I learned that the WordPress text widget does not execute a shortcode.  A lot of the shortcode plugins add the code below automatically when you install them.  This is why I didn’t have this problem in my other WordPress set ups.

Here’s what you need to do to start using shortcodes in WordPress text widgets.

1) Go to the dashboard and click on Appearance –> Editor

2) Find your functions.php file in the right hand column and click on it

3) Scroll down to the bottom of the file and paste this code

[gss-content-box color=”green”]add_filter( ‘widget_text’, ‘do_shortcode’);[/gss-content-box]

Congrats!  Now you’ll be able to use shortcodes within Text widgets.