'edit_theme_options', 'option_type' => 'theme_mod', ) ); function borax_customizer_sections($wp_customize){ $wp_customize->remove_section("colors"); $wp_customize->remove_section( 'background_image' ); $wp_customize->remove_section( 'header_image' ); $wp_customize->add_panel( 'theme_option', array( 'priority' => 10, 'title' => esc_html__( 'Theme Options', 'borax' ), ) ); $wp_customize->add_section( 'general_section', array( 'title' => esc_html__( 'General Settings', 'borax' ), 'priority' => 1, 'description' => esc_html__( 'to change logo,favicon etc', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'header_section', array( 'title' => esc_html__( 'Header Settings', 'borax' ), 'priority' => 2, 'description' => esc_html__( 'Setting Your Menu', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'page_section', array( 'title' => esc_html__( 'Page Settings', 'borax' ), 'priority' => 4, 'description' => esc_html__( 'Setting Your Page', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'page_header', array( 'title' => esc_html__( 'Page Header', 'borax' ), 'priority' => 4, 'description' => esc_html__( 'Setting Your Page Header', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'blog_section', array( 'title' => esc_html__( 'Blog Settings', 'borax' ), 'priority' => 5, 'description' => esc_html__( 'Setting Your Blog', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'footer_section', array( 'title' => esc_html__( 'Footer Settings', 'borax' ), 'priority' => 6, 'description' => esc_html__( 'Setting Your Footer', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'error_section', array( 'title' => esc_html__( 'Error Page Settings', 'borax' ), 'priority' =>7, 'description' => esc_html__( 'Setting Your Error Page', 'borax' ), 'panel' => 'theme_option', ) ); $wp_customize->add_section( 'styling_section', array( 'title' => esc_html__( 'Styling Settings', 'borax' ), 'priority' => 8, 'description' => esc_html__( 'Setting Your font', 'borax' ), 'panel' => 'theme_option', ) ); } add_action( 'customize_register', 'borax_customizer_sections' ); class Borax_GetFooterMenu { function borax_get_menu_list(){ $locations = get_nav_menu_locations(); $menus = get_registered_nav_menus(); $exclude_theme_locations_opt = array(); foreach ($menus as $location => $description) { $exclude_theme_locations_opt[$location] = ucfirst($description); } return $exclude_theme_locations_opt; } } $getFooterMenu = new Borax_GetFooterMenu(); $getFooterSidebar = new Borax_GetFooterMenu(); require BORAX_CUSTOMIZER_DIR . 'customizer-fields.php' ;