Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function customTheme()
- {
- //Logo on the web
- $wp_customize->add_section("Logo", array(
- "title" => __("Change logo", "customizer_logo_sections"),
- "priority" => 30,
- ));
- $wp_customize->add_setting("Change_logo", array(
- "default" => "",
- "transport" => "postMessage",
- ));
- $wp_customize->add_control(new WP_Customize_Control(
- $wp_customize,
- "Change_logo",
- array(
- "label" => __("Enter Ads Code", "customizer_ads_code_label"),
- "section" => "Logo",
- "settings" => "Change_logo",
- "type" => "select"
- )
- ));
- //$wp_customize->get_setting('ads_code')->transport = 'refresh';
- $wp_customize->get_setting('Change_logo')->transport = 'postMessage';
- //to try some problem
- $wp_customize->add_section("Navbarbrand", array(
- "title" => __("Change Navbarbrand", "customizer_logo_sections"),
- "priority" => 30,
- ));
- $wp_customize->add_setting("Change_navbarbrand", array(
- "default" => "",
- "transport" => "postMessage",
- ));
- $wp_customize->add_control(new WP_Customize_Control(
- $wp_customize,
- "Change_navbarbrand",
- array(
- "label" => __("Enter Navbarbrand", "customizer_navbarbrand_label"),
- "section" => "Navbarbrand",
- "settings" => "Change_navbarbrand",
- "type" => "text"
- )
- ));
- //$wp_customize->get_setting('ads_code')->transport = 'refresh';
- $wp_customize->get_setting('Change_navbarbrand')->transport = 'postMessage';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement