Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer.

I am trying to figure out how to disable setting controls in the Wordpress theme customizer page. An example is:

  1. A section in the theme customizer contains a checkbox that is used to hide or show text in a hero container. When it is checked it will hide the text. The checkbox label says "Hide hero text".

  2. Within the same section there is a textbox for the user to enter the text they want for the hero container. The label says "hero text".

I am trying to figure out how to disable the textbox(2.) when the checkbox(1.) is checked. By disabling I am referring to making the textbox inactive so nothing can be input into it.

Can anyone explain how this can be done? Information on the theme customizer is very scarce at this time. I would greatly appreciate it.

share|improve this question
2  
Please provide more details. Maybe a more specific example of what you're trying to accomplish? –  gdaniel May 1 '13 at 13:20
    
I am trying to figure out how to disable controls in the theme customizer. An example is if a checkbox in a section of the theme customizer is checked then it will automatically disable certain controls that I specified. Such as a button. –  user1632018 May 2 '13 at 2:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.