Force Customizer to show widgets in page with no sidebar

Hi i have show the widgets in front-end with this function to have complete control on html:
https://gist.github.com/kingkool68/341818

how can i tell to wordpress that i have a sidebar active witout use a sidebar delaration as:

<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘home_intro’) ) : ?>

this duplicate the widgets on the page.
Thanks!

Read more here:: Force Customizer to show widgets in page with no sidebar

Leave a Reply

Your email address will not be published. Required fields are marked *