Site icon Hip-Hop Website Design and Development

Methods to disable controls in theme customizer?

Edit: I’ve rewritten the query in hopes I’ll get a reply from somebody who is aware of the theme customizer.

I’m making an attempt to determine the right way to disable setting controls within the WordPress theme customizer web page. An instance is:

  1. A piece within the theme customizer incorporates a checkbox that’s used to cover or present textual content in a hero container. When it’s checked it is going to conceal the textual content. The checkbox label says “Disguise hero textual content”.

  2. Inside the similar part there’s a textbox for the person to enter the textual content they need for the hero container. The label says “hero textual content”.

I’m making an attempt to determine the right way to disable the textbox(2.) when the checkbox(1.) is checked. By disabling I’m referring to creating the textbox inactive so nothing might be enter into it.

Can anybody clarify how this may be completed? Info on the theme customizer could be very scarce right now. I’d vastly admire it.