Dynamic Class Sidebar
-
I’m creating a wp_customize section to change the layout of my sidebar by changing the class of my sidebar in register_sidebar().
The variable passes correctly and will change the class. However, since register_sidebar runs at widgets_init I need to save the setting and refresh the theme customizer to see the changes.
How can I get the setting change to refresh and update automatically like the other settings?
I’m passing get_theme_mod(‘custom_setting’) as a class inside the ‘before_widget’ => <div class=”get_theme_mod(‘custom_setting’)”>.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dynamic Class Sidebar’ is closed to new replies.