How to add shortcodes into sidebar widgets

Ever downloaded a sweet new plugin and installed it on your WordPress website, and tried to use the shortcodes in your sidebars? Well, stop banging your head against a wall because here’s some quick code to help you get this working.

Add the code below into your functions.php file and away you go!

add_filter('widget_text', 'do_shortcode');
Get a Free QuoteToo hard basket? Call us! ×
  • Your details
  • Project details
  • More details