To enable Beaver Builder template shortcodes in WordPress sidebar widgets, add this code to your theme’s functions.php file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enable Beaver template shortcodes in WordPress widgets | |
* | |
* @author Davinder Singh Kainth | |
* @link http://probeaver.com | |
* | |
*/ | |
add_filter('widget_text', 'do_shortcode'); |