rev969 & pages tab-menu

1 view
Skip to first unread message

ColetasSoft

unread,
Jan 9, 2010, 11:39:09 AM1/9/10
to K2 Support
Hello,

Is there a way to easily toggle child-pages display in the pages
tabbed-navigation?


Thanks in advance, Isaac.

Michael Heilemann

unread,
Jan 9, 2010, 11:40:48 AM1/9/10
to k2-su...@googlegroups.com
Not as such. The menu is a work in progress; I suggest you just use 1.0.2 for now.

--
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.






--
/ M

Isaac Garcia

unread,
Jan 9, 2010, 7:55:21 PM1/9/10
to k2-su...@googlegroups.com
I can live with a "display: none" in the meantime for the nested list ;)

Thanks for the prompt reply.
Isaac García

http://www.coletassoft.com
http://www.flickr.com/photos/coletassoft
http://www.facebook.com/coletassoft
http://twitter.com/coletassoft
http://coletassoft.tumblr.com/
http://coletassoft.deviantART.com

JFGI | RTFM

Steve Lam

unread,
Jan 11, 2010, 1:57:20 PM1/11/10
to k2-su...@googlegroups.com
Create a Child Theme (see: http://code.google.com/p/kaytwo/wiki/K2ChildThemes). You have 2 options (pick one, don't do both) in your child theme:

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

Isaac Garcia

unread,
Jan 11, 2010, 2:04:58 PM1/11/10
to k2-su...@googlegroups.com
Thanks Steve, that works even better than using a temporary "display: none" for the sub menu.

Since I am already using a child theme with a modified header block, it´s a no brainer.

Thanks again, Isaac.
Reply all
Reply to author
Forward
0 new messages