add_section( 'amp_options_section' , array( 'title' => __( 'Theme Options', 'amp' ), 'priority' => 30, 'description' => 'Upload logo, Upload background image', ) ); // Show-hide content options $wp_customize->add_setting( 'amp_toggle_meta', array( 'sanitize_callback' => 'amp_sanitize_checkbox', 'default' => false, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'amp_toggle_meta', array( 'label' => __( 'Check to Hide Header Info', 'amp' ), 'section' => 'amp_options_section', 'settings' => 'amp_toggle_meta', 'type' => 'checkbox', ) ) ); $wp_customize->add_setting( 'amp_footer_back', array( 'type' => 'option', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'amp_footer_back', array( 'label' => __( 'Footer Background', 'amp' ), 'description' => 'Upload image or use color control below', 'section' => 'amp_options_section', 'settings' => 'amp_footer_back', ) ) ); // custom logo upload $wp_customize->add_setting( 'amp_logo', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'amp_logo', array( 'label' => __( 'Logo', 'amp' ), 'description' => 'Logo sits to the right of post title', 'section' => 'amp_options_section', 'settings' => 'amp_logo', ) ) ); // custom link colors $wp_customize->add_setting( 'amp_link', array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#0055aa', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'amp_link', array( 'label' => __( 'Link colors', 'amp' ), 'section' => 'colors', 'settings' => 'amp_link', ) ) ); // content background color $wp_customize->add_setting( 'amp_content_back', array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#ffffff', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'amp_content_back', array( 'label' => __( 'Content Background Color', 'amp' ), 'section' => 'colors', 'settings' => 'amp_content_back', ) ) ); // content text color $wp_customize->add_setting( 'amp_text_color', array( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#7a7a7a', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'amp_text_color', array( 'label' => __( 'Content Text Color', 'amp' ), 'section' => 'colors', 'settings' => 'amp_text_color', ) ) ); } add_action( 'customize_register', 'amp_customize_register' ); // now put the options to work in amp theme function amp_customize_css() { ?>
Tradesouthwest WordPress Themes
For customization of this theme email Larry at themes@tradesouthwest.com