• Resolved Reggiebus

    (@spasarok)


    I’m working on a variant of the Twenty Eleven theme and am currently tweaking the Customizer. I’d like to move the Header Text Color control from the Colors section to the Site Title & Tagline section.

    I know that I can do this with the Link Colors control using the code:

    $wp_customize->get_control( 'link_color'  )->section   = 'title_tagline';

    Here link_color indicates the control. What do I have to use to indicate the Header Text Color control? Is there a reference list of all the default controls?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It appears to be ‘header_textcolor’. The initial controls are established in wp-includes/class_wp_customize_manager.php around line 928. That is a start for the controls used. More are likely added elsewhere, those will be harder to find. If you’re determined, search the various customizer classes for “->add_control(“, ensuring the method found actually belongs to an instance of WP_Customize_Manager.

    Thread Starter Reggiebus

    (@spasarok)

    Thank you! Worked like a charm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List of Default Customizer Controls’ is closed to new replies.