How to use shortcodes in text widget

As default shortcodes don’t work in WordPress text widget. To activate shortcodes for this widget, copy paste the following shortcode to your theme’s functions.php file;

add_filter('widget_text', 'do_shortcode');

Screenshot_1