Most of the Genesis themes I’ve build use widget area’s on the front page. This gives an user lots of options in showing different kinds of content on the front page.
Recently I discovered some problems with WooCommerce. WooCommerce includes a few widgets, but they don’t have widgets for showing for example featured products. If you want to display these products you can use a shortcode. But If you need to add shortcodes to a widget area there is a problem, as they just don’t work!
WooCommerce isn’t the only WordPress plugin which includes shortcodes, so it would be great to have a solution for this problem. And no worry, there is!
Just add the code below to your themes functions.php and you’re all set.
harneet says
hey!
i’m using genesis framework with ‘genesis sample develop’ child theme. The problem i am getting is that, this theme is not rendering any shortcodes and html in text widget even after i including
add_filter( ‘widget_text’, ‘shortcode_unautop’);
add_filter( ‘widget_text’, ‘do_shortcode’, 11);
to my child theme’s ‘function.php’ file. Please help me out……
Thanku
Frank Schrijvers says
Why don’t you use the HTML widget instead? This should solve your issue.
Brian Swanick says
Really helpful, thanks mate. I hadn’t considered the functions file and was getting more frustrated than I care to admit! 🙂