Quellcode durchsuchen

Assign a higher priority to the nav area unregister functions.

Kjell Reigstad vor 4 Jahren
Ursprung
Commit
cc4dd4b0c3
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 5 4
      blank-canvas/functions.php

+ 5 - 4
blank-canvas/functions.php

@@ -71,20 +71,21 @@ add_action( 'after_setup_theme', 'blank_canvas_setup', 11 );
  */
  */
 function blank_canvas_remove_parent_theme_features() {
 function blank_canvas_remove_parent_theme_features() {
 
 
-	// Theme Support
+	// Theme Support.
 	remove_theme_support( 'custom-header' );
 	remove_theme_support( 'custom-header' );
 	remove_theme_support( 'custom-logo' );
 	remove_theme_support( 'custom-logo' );
 	remove_theme_support( 'customize-selective-refresh-widgets' );
 	remove_theme_support( 'customize-selective-refresh-widgets' );
 
 
-	// Navigation Areas
+	// Navigation Areas.
 	unregister_nav_menu( 'primary' );
 	unregister_nav_menu( 'primary' );
 	unregister_nav_menu( 'footer' );
 	unregister_nav_menu( 'footer' );
 	unregister_nav_menu( 'social' );
 	unregister_nav_menu( 'social' );
 }
 }
-add_action( 'after_setup_theme', 'blank_canvas_remove_parent_theme_features', 10 );
+add_action( 'after_setup_theme', 'blank_canvas_remove_parent_theme_features', 11 );
 
 
 function blank_canvas_dequeue_parent_scripts() {
 function blank_canvas_dequeue_parent_scripts() {
-	// Naviation assets
+
+	// Naviation assets.
 	wp_dequeue_script( 'seedlet-primary-navigation-script' );
 	wp_dequeue_script( 'seedlet-primary-navigation-script' );
 	wp_dequeue_style( 'seedlet-style-navigation' );
 	wp_dequeue_style( 'seedlet-style-navigation' );
 }
 }