• Is it possible to add another color picker in admin > apearance > colors for the anchors?

    I know how to set the links in a css editor by:

    a {
    #000;
    }

    However, I have a multisite, and this is something that I would like users to easily change in the admin.

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Thread Starter Andrew

    (@snd26)

    I’m hafway there, I managed to find this that adds a new color picker with title ‘Link Color’ in the appearance > customizer > colors:

    function tcx_register_theme_customizer( $wp_customize ) {
       $wp_customize->add_setting(
        'tcx_link_color',
        array(
            /*'default'     => '#ff0000'*/
        )
    );
    
    $wp_customize->add_control(
        new WP_Customize_Color_Control(
            $wp_customize,
            'link_color',
            array(
                'label'      => __( 'Link Color', 'tcx' ),
                'section'    => 'colors',
                'settings'   => 'tcx_link_color'
            )
        )
    );

    Is there something else I can put in the array to make it select the anchors?

Viewing 1 replies (of 1 total)

The topic ‘Adding another admin color picker for links’ is closed to new replies.