diff --git a/header.php b/header.php index 4769c27..a9e8611 100644 --- a/header.php +++ b/header.php @@ -56,13 +56,18 @@
- - " title=""> - - - -

">

-

">

+ + + + + + + +

+

+ +

+

diff --git a/inc/customizer.php b/inc/customizer.php index c108c78..f5b57f6 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -94,9 +94,7 @@ public function render_content() { 'site_logo', array( 'default-image' => '', - 'sanitize_callback' => 'esc_url_raw', - 'transport' => 'postMessage' - + 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( @@ -139,7 +137,6 @@ public function render_content() { array( 'default' => 'hide-title', 'sanitize_callback' => 'oblique_sanitize_logo_style', - 'transport' => 'postMessage', ) ); $wp_customize->add_control( diff --git a/js/customizer.js b/js/customizer.js index bdacf80..71bf926 100644 --- a/js/customizer.js +++ b/js/customizer.js @@ -170,35 +170,6 @@ } ); }); - // Logo - Header - wp.customize( 'site_logo', function( value ) { - value.bind( function( val ) { - var logo = $( '.site-logo' ), - logo_wrap = $( '.site-branding > a' ), - title = $( '.site-branding .site-title, .site-branding .site-description' ); - - logo.attr( 'src', val ); - if( '' !== val ) { - logo_wrap.removeClass( 'oblique-only-customizer' ); - } else { - logo_wrap.addClass( 'oblique-only-customizer' ); - } - } ); - }); - - // Logo style - Header - wp.customize( 'logo_style', function( value ) { - value.bind( function( val ) { - var title = $( '.site-branding .site-title, .site-branding .site-description' ), - logo_wrap = $( '.site-branding > a' ); - if( 'hide-title' === val && !logo_wrap.hasClass( 'oblique-only-customizer' ) ) { - title.addClass( 'oblique-only-customizer' ); - } else { - title.removeClass( 'oblique-only-customizer' ); - } - } ); - }); - // Padding - Header wp.customize( 'branding_padding', function( value ) { value.bind( function( val ) {