How to Use Shortcodes in WordPress Text Widgets

Just add the following code in the functions.php file

add_filter('widget_text', 'do_shortcode');