I had an issue with the plugin HiSlider not working within widgets on a WordPress installation while working perfectly in a page or a post. The solution did not lie within plugin incompatibilities or PHP versions. It was a rather simple fix.
Navigate to your theme’s functions.php and add the following line of code:
And that’s all!