ThemeShaper Forums » Thematic

page in sidebar but not in top navigation?

(2 posts)
  • Started 5 years ago by fabbio
  • Latest reply from Chris
  • This topic is not resolved
  1. fabbio
    Member

    Hello, maybe this is totally stupid, but is it possible to have a page shown in the sidebar but not in the navigation?
    Thanks

    Posted 5 years ago #
  2. 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 5 years ago #

RSS feed for this topic

Reply

You must log in to post.