How to Add Short Code to a Widget

Written by: Eileen Lonergan


No lie, I had to Google this myself; however, it totally worked, so I like to share.

To allow shortcodes in sidebar widgets in WordPress:

  • Navigate to the Dashboard of your WordPress Site
  • Under Appearance -> Editor -> Functions.php file add the following code:
add_filter(‘widget_text’, ‘do_shortcode’);

I recently figured this out when using the Royal Slider Plugin. One other thing to note when using the Royal Slider in a widget for WordPress, make sure the Preload Skin option is selected.

Let me know if I can help!

This post was written by

Eileen Lonergan – who has written posts on Eileen Lonergan Web Design & Internet Marketing.
This is my blog and I hope you enjoy it. I try to share tips and tricks that I have learned about WordPress and digital marketing, which hopefully will make your life a bit easier. I have been working on search engine marketing for clients since 2003.

Email  • Google + • Facebook  • Twitter

Related Posts with Thumbnails

Comments are closed.