Explorar el Código

Update library/bones.php

Added arguments for wp_page_menu() in bones_main_nav_fallback().

Also added the same classes to the fallback as the main menu.
Mike hace 13 años
padre
commit
099f0a5f69
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      library/bones.php

+ 9 - 1
library/bones.php

@@ -263,7 +263,15 @@ function bones_footer_links() {
 
 // this is the fallback for header menu
 function bones_main_nav_fallback() {
-	wp_page_menu( 'show_home=Home' );
+	wp_page_menu( array(
+		'show_home' => true,
+    	'menu_class' => 'nav footer-nav clearfix',      // adding custom nav class
+		'include'     => '',
+		'exclude'     => '',
+		'echo'        => true,
+        'link_before' => '',                            // before each link
+        'link_after' => ''                             // after each link
+	) );
 }
 
 // this is the fallback for footer menu