Browse Source

Move the option to the menu setion

Ben Dwyer 4 years ago
parent
commit
657657bc5f
1 changed files with 11 additions and 3 deletions
  1. 11 3
      varia/functions.php

+ 11 - 3
varia/functions.php

@@ -184,9 +184,9 @@ if ( ! function_exists( 'varia_setup' ) ) :
 		// Add support for Global Styles.
 		add_theme_support(
 			'jetpack-global-styles',
-			[
+			array(
 				'enable_theme_default' => true,
-			]
+			)
 		);
 
 	}
@@ -312,11 +312,19 @@ if ( ! function_exists( 'varia_register_mobile_nav_on_side_customizer_control' )
 			)
 		);
 
+		$wp_customize->add_section(
+			'nav_menus_mobile',
+			array(
+				'title' => __( 'Mobile Settings', 'varia' ),
+				'panel' => 'nav_menus',
+			)
+		);
+
 		$wp_customize->add_control(
 			'enable_side_menu',
 			array(
 				'label'    => __( 'Display mobile menu on the side', 'varia' ),
-				'section'  => 'title_tagline',
+				'section'  => 'nav_menus_mobile',
 				'settings' => 'enable_side_menu',
 				'type'     => 'checkbox',
 			)