Widgets not working in Customizr but working in Appearance

The customizer needs the sidebar to be “displayed” in order to detect its existence on the page. In your code you display the sidebar only if it is “active” which means that it has at least one widget in it, otherwise when no widgets are included it is not displayed and therefore the customizer can not detect it.

Don’t check for sidebar “activity”, the display_sidebar should output empty div or a like if no widgets exist in it so no real point in preventing its execution.

Leave a Comment

tech