add_section( 'custom_footer', array( 'title' => __( 'Footer Options', 'pliska' ), 'description' => __( 'Change footer styles and edit site credits.', 'pliska' ), ) ); /* Footer Background Color */ $wp_customize->add_setting( 'footer_background_color', array( 'default' => '#262626', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_background_color', array( 'label' => esc_html__( 'Footer Background Color', 'pliska' ), 'section' => 'custom_footer', ) ) ); // Footer text color $wp_customize->add_setting( 'footer_text_color', array( 'default' => '#999', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_text_color', array( 'label' => esc_html__( 'Footer Text Color', 'pliska' ), 'section' => 'custom_footer', ) ) ); /* Footer Links Color */ $wp_customize->add_setting( 'footer_link_color', array( 'default' => '#f5f5f5', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_link_color', array( 'label' => esc_html__( 'Footer Links Color', 'pliska' ), 'section' => 'custom_footer', ) ) ); /* * Allow users to add their own footer credits. */ $wp_customize->add_setting( 'footer_text_block', array( 'default' => '', 'sanitize_callback' => 'pliska_sanitize_html', 'description' => __( 'Add copyright info', 'pliska' ), 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'footer_text_block', array( 'label' => __( 'Footer Credits', 'pliska' ), 'section' => 'custom_footer', 'type' => 'text', ) ); } add_action( 'customize_register', 'pliska_register_footer_customizer', 999 ); function pliska_footer_customize_css() { return; ?>