瀏覽代碼

Assign a higher priority to the nav area unregister functions.

Kjell Reigstad 4 年之前
父節點
當前提交
cc4dd4b0c3
共有 1 個文件被更改,包括 5 次插入4 次删除
  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() {
 
-	// Theme Support
+	// Theme Support.
 	remove_theme_support( 'custom-header' );
 	remove_theme_support( 'custom-logo' );
 	remove_theme_support( 'customize-selective-refresh-widgets' );
 
-	// Navigation Areas
+	// Navigation Areas.
 	unregister_nav_menu( 'primary' );
 	unregister_nav_menu( 'footer' );
 	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() {
-	// Naviation assets
+
+	// Naviation assets.
 	wp_dequeue_script( 'seedlet-primary-navigation-script' );
 	wp_dequeue_style( 'seedlet-style-navigation' );
 }