I would like to add all possible options to add_theme_support( ‘colors’ ) in WP Customizer.

What I have that worked was:

add_theme_support( 'colors' , array(  // Add colors section to Customizer. 
    'slug'      =>  ' content_text_color',
    'default'   =>  '#fff',
    'label'     =>  __('Site Title and Tagline go here')
) ) ;

What I have that only gives me the text color is:

add_theme_support( 'colors' , array(  // Add colors section to Customizer. 
    'slug'      =>  ' content_text_color',
    'default'   =>  '#fff',
    'label'     =>  __('Site Title and Tagline go here')
), array(
    'slug'      =>  'content_link_color', 
    'default'   =>  '#fff',
    'label'     =>  __('Choose link color')
) ) ;

So the second array is not working, or something wrong with how I’m implementing this solution?

Can this be done, what other options can be done in the same “breath” and how would I accomplish this?

Read more here: Can I add multiple arrays within add_theme_support( ‘colors’ )?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: