diff --git a/inc/customizer.php b/inc/customizer.php index a6e8207..45d145e 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -68,7 +68,6 @@ function zillah_customize_register( $wp_customize ) { $wp_customize->add_setting('zillah_sidebar_show', array( 'default' => false, 'sanitize_callback' => 'zillah_sanitize_checkbox', - 'transport' => 'postMessage', )); $wp_customize->add_control('zillah_sidebar_show', array( @@ -79,21 +78,6 @@ function zillah_customize_register( $wp_customize ) { 'type' => 'checkbox', )); - /* Show sidebar on mobile */ - $wp_customize->add_setting('zillah_sidebar_show_mobile', array( - 'default' => false, - 'sanitize_callback' => 'zillah_sanitize_checkbox', - 'transport' => 'postMessage', - )); - - $wp_customize->add_control('zillah_sidebar_show_mobile', array( - 'label' => esc_html__( 'Show sidebar on mobile', 'zillah' ), - 'description' => esc_html__( 'If you check this box, the sidebar will appear on homepage and archive page on mobile version.', 'zillah' ), - 'section' => 'zillah_home_theme_option_section', - 'priority' => 1, - 'type' => 'checkbox', - )); - /* Show Tags */ $wp_customize->add_setting('zillah_tags_show', array( 'default' => false, diff --git a/sidebar.php b/sidebar.php index 38729f4..58e2fcc 100644 --- a/sidebar.php +++ b/sidebar.php @@ -8,7 +8,6 @@ */ $zillah_sidebar_show = get_theme_mod( 'zillah_sidebar_show', false ); -$zillah_sidebar_show_mobile = get_theme_mod( 'zillah_sidebar_show_mobile', false ); if ( ! is_active_sidebar( 'zillah-sidebar-1' ) ) { return; @@ -16,9 +15,9 @@ ?> -