Created
October 12, 2016 05:19
-
-
Save jessicahawkins3344/9d6ef23e134e50f5654f3ffffcc2fa15 to your computer and use it in GitHub Desktop.
customizer-setup.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Require Files | |
// ============================================================================= | |
require_once( 'customizer-options.php' ); | |
require_once( 'customizer-mods.php' ); | |
require_once( 'customizer-styles.php' ); | |
function new_update_native_customizer_functionality( $wp_customize ) { | |
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; | |
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; | |
$wp_customize->get_section( 'title_tagline' )->priority = '9'; | |
$wp_customize->get_section( 'title_tagline' )->title = __('Site branding', 'squarely'); | |
$wp_customize->get_section( 'title_tagline' )->panel = 'header-navbar'; | |
$wp_customize->remove_control( 'header_textcolor' ); | |
$wp_customize->remove_control( 'display_header_text' ); | |
$wp_customize->remove_section( 'colors' ); | |
$wp_customize->remove_section( 'background_image' ); | |
} | |
add_action( 'customize_register', 'new_update_native_customizer_functionality' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment