Support » Fixing WordPress » Theme Customizer: Dynamic Customizer Controls via JavaScript

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Customizer: Dynamic Customizer Controls via JavaScript’ is closed to new replies.