Hello, maybe this is totally stupid, but is it possible to have a page shown in the sidebar but not in the navigation?
Thanks
ThemeShaper Forums » Thematic
page in sidebar but not in top navigation?
(2 posts)-
Posted 2 years ago #
-
Hi,
you can use the following code in your child theme's functions.php:
function childtheme_menu_args($args) { $args = array( 'show_home' => 'Home', 'sort_column' => 'menu_order', 'menu_class' => 'menu', 'exclude' => '100', 'echo' => true ); return $args; } add_filter('wp_page_menu_args','childtheme_menu_args');Change the '100' to the pageID or IDs (comma separated) you want to exclude.
To display the exluded page(s) in your sidebar you can use Flexi Pages Widget
Cheers,
Chris
Posted 2 years ago #
Reply
You must log in to post.