Theme Customizer: Dynamic Customizer Controls via JavaScript (3 posts)

  1. raamdev
    Posted 2 years ago #

    I'm using the Theme Customization API and I have a control (a select drop-down) that, when changed, I want to hide or show another control (in this case, a checkbox).

    This would need to be done via JavaScript to make the process seamless for the user (doing it via PHP would require hitting "Save and Publish" and then coming back to the Customizer to see the new control).

    I've searched around but cannot find any good examples of this in action. Does anyone have any advice?

  2. jfitzsimmons2
    Posted 1 year ago #

    I'm currently in the same position. I'm looking for a way to show additional options based on what previous options are selected. I think I can figure out how this is done, just haven't had time to test it. I'll report back if I figure out a solution.

  3. raamdev
    Posted 1 year ago #

    Please do report back if you come up with a solution! I'd love to improve the usability of the theme customizer in my themes where there are options that aren't relevant until another option is enabled/disabled.

Topic Closed

This topic has been closed to new replies.

About this Topic