Is there a way to easily toggle child-pages display in the pages
tabbed-navigation?
Thanks in advance, Isaac.
--
You received this message because you are subscribed to the Google Groups "K2 Support" group.
To post to this group, send email to k2-su...@googlegroups.com.
To unsubscribe from this group, send email to k2-support+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/k2-support?hl=en.
Option 1: k2-header.php
1. Create a blocks folder in your child theme and copy blocks/k2-header.php there.
2. Edit your k2-header.php and change:
wp_page_menu( array( 'show_home' => esc_attr( get_option('k2blogornoblog') ), 'depth' => 3 ) );
to
wp_page_menu( array( 'show_home' => esc_attr( get_option('k2blogornoblog') ), 'depth' => 0 ) );
OR:
Option 2: functions.php
1. Create a empty functions.php in your child theme folder.
2. Enter the following inside:
<?php
function my_page_menu_args_filter($args) {
$args['depth'] = 0;
return $args;
}
add_filter('wp_page_menu_args', 'my_page_menu_args_filter');
In the long run, we should add an option in K2 Options, to toggle the depth or completely disable k2's header menu.
-Steve