Welcome to our forum.
Please add following code to your theme functions.php file
Let me know the result after adding.
Thanks for your reply, by adding this code any shortcode should work on text widget, can you please check the text widget editor is in "text" mode. please see the screenshot.
I added the code but still the same issue.
Please login to see your tickets