Просмотр исходного кода

Merge pull request #256 from MadeByMike/master

Update to bones_main_nav_fallback
Eddie Machado 13 лет назад
Родитель
Сommit
50a929c3b9
1 измененных файлов с 9 добавлено и 1 удалено
  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
 // this is the fallback for header menu
 function bones_main_nav_fallback() {
 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
 // this is the fallback for footer menu