{"id":3783,"date":"2017-06-24T13:27:31","date_gmt":"2017-06-24T11:27:31","guid":{"rendered":"https:\/\/florianbrinkmann.com\/en\/?p=3783"},"modified":"2020-02-09T10:59:48","modified_gmt":"2020-02-09T09:59:48","slug":"conditional-displaying-and-hiding-of-customizer-controls-via-javascript","status":"publish","type":"post","link":"https:\/\/florianbrinkmann.com\/en\/conditional-displaying-and-hiding-of-customizer-controls-via-javascript-3783\/","title":{"rendered":"Conditional displaying and hiding of customizer controls via JavaScript"},"content":{"rendered":"\n
When using Partial Refresh<\/em> in the customizer to reload only a part of the preview after changing a setting\u2019s value, the active_callback for these settings is not working anymore. With active_callback<\/code> you can, for example, show a control only if another control has a particular value. In that case, the conditional displaying has to be done with JavaScript.<\/p>\n\n\n\n\n\n\n\n