//custom theme customize options function custom_theme_customize_options($wp_customize){ //customize options for Header and Footer $wp_customize->add_section("bleupage_theme_options", array("title"=> "BleuPage Theme Options")); //Bleupage Logo ------------------------------------------------------ $wp_customize->add_setting('bleupage_logo_setting', array( 'default' => '')); $wp_customize->add_control( new WP_Customize_image_control ( $wp_customize, "bleupage_logo_control", array( 'label' => 'Upload Bleupage Logo', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_logo_setting', ) )); //Bleupage Footer Logo ------------------------------------------------------ $wp_customize->add_setting('bleupage_footer_logo_setting', array( 'default' => '')); $wp_customize->add_control( new WP_Customize_image_control ( $wp_customize, "bleupage_footer_logo_control", array( 'label' => 'Upload Footer Logo', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_footer_logo_setting', ) )); //Bleupage Mobile Logo ------------------------------------------------------ $wp_customize->add_setting('bleupage_mobile_logo_setting', array( 'default' => '')); $wp_customize->add_control( new WP_Customize_image_control ( $wp_customize, "bleupage_mobile_logo_control", array( 'label' => 'Upload Mobile Logo', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_mobile_logo_setting', ) )); //Bleupage Address ------------------------------------------------------ $wp_customize->add_setting('bleupage_address_setting', array( 'default' => '')); $wp_customize->add_control('bleupage_address_control', array( 'label' => 'Enter Address', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_address_setting', 'type' => 'textarea' )); //Bleupage Phone Number -------------------------------------------------- $wp_customize->add_setting("bleupage_phone_number_setting", array("default"=> "239-932-0900")); $wp_customize->add_control("bleupage_phone_number_control", array( "label" => "Enter Phone Number", "section" => "bleupage_theme_options", "settings" => "bleupage_phone_number_setting" )); //Bleupage FAX -------------------------------------------------- $wp_customize->add_setting('bleupage_fax_setting', array( 'default' => '239-932-0901')); $wp_customize->add_control('bleupage_fax_control', array( 'label' => 'Enter Fax', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_fax_setting', 'type' => 'text' )); //Bleupage Email Address ------------------------------------------------------ $wp_customize->add_setting('bleupage_email_address_setting', array( 'default' => 'support@bleupage.com')); $wp_customize->add_control('bleupage_email_address_control', array( 'label' => 'Enter Email Address', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_email_address_setting', 'type' => 'text' )); //Bleupage Copyright ------------------------------------------------------ $wp_customize->add_setting('bleupage_copyright_setting', array( 'default' => '')); $wp_customize->add_control('bleupage_copyright_control', array( 'label' => 'Enter Copyright Text', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_copyright_setting', 'type' => 'textarea' )); } add_action('customize_register', 'custom_theme_customize_options'); function custom_theme_customize_options($wp_customize){ //customize options for Header and Footer $wp_customize->add_section("bleupage_theme_options", array("title"=> "BleuPage Theme Options")); //Bleupage Logo ------------------------------------------------------ $wp_customize->add_setting('bleupage_logo_setting', array( 'default' => '')); $wp_customize->add_control( new WP_Customize_image_control ( $wp_customize, "bleupage_logo_control", array( 'label' => 'Upload Bleupage Logo', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_logo_setting', ) )); //Bleupage Footer Logo ------------------------------------------------------ $wp_customize->add_setting('bleupage_footer_logo_setting', array( 'default' => '')); $wp_customize->add_control( new WP_Customize_image_control ( $wp_customize, "bleupage_footer_logo_control", array( 'label' => 'Upload Footer Logo', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_footer_logo_setting', ) )); //Bleupage Mobile Logo ------------------------------------------------------ $wp_customize->add_setting('bleupage_mobile_logo_setting', array( 'default' => '')); $wp_customize->add_control( new WP_Customize_image_control ( $wp_customize, "bleupage_mobile_logo_control", array( 'label' => 'Upload Mobile Logo', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_mobile_logo_setting', ) )); //Bleupage Address ------------------------------------------------------ $wp_customize->add_setting('bleupage_address_setting', array( 'default' => '')); $wp_customize->add_control('bleupage_address_control', array( 'label' => 'Enter Address', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_address_setting', 'type' => 'textarea' )); //Bleupage Phone Number -------------------------------------------------- $wp_customize->add_setting("bleupage_phone_number_setting", array("default"=> "239-132-0000")); $wp_customize->add_control("bleupage_phone_number_control", array( "label" => "Enter Phone Number", "section" => "bleupage_theme_options", "settings" => "bleupage_phone_number_setting" )); //Bleupage FAX -------------------------------------------------- $wp_customize->add_setting('bleupage_fax_setting', array( 'default' => '239-132-0000')); $wp_customize->add_control('bleupage_fax_control', array( 'label' => 'Enter Fax', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_fax_setting', 'type' => 'text' )); //Bleupage Email Address ------------------------------------------------------ $wp_customize->add_setting('bleupage_email_address_setting', array( 'default' => 'support@xxxxxxxx.com')); $wp_customize->add_control('bleupage_email_address_control', array( 'label' => 'Enter Email Address', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_email_address_setting', 'type' => 'text' )); //Bleupage Copyright ------------------------------------------------------ $wp_customize->add_setting('bleupage_copyright_setting', array( 'default' => '')); $wp_customize->add_control('bleupage_copyright_control', array( 'label' => 'Enter Copyright Text', 'section' => 'bleupage_theme_options', 'settings' => 'bleupage_copyright_setting', 'type' => 'textarea' )); } add_action('customize_register', 'custom_theme_customize_options');

About the Author

Anuj Sharma
Anuj Sharma is the Founder of AnujStudyPoint. He has been working in Software Development industry since 2015.

Leave a Reply

Your email address will not be published. Required fields are marked *