• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to exclude certain pages from navigation menu?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to exclude certain pages from navigation menu?

This topic is: resolved

Tagged: modern blogger, Navigation Bar, pages, Pretty Darn Cute Design, pro

  • This topic has 4 replies, 3 voices, and was last updated 7 years, 9 months ago by Susan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 15, 2015 at 1:14 am #156221
    rihannsu
    Member

    Okay, take two since my last post was apparently eaten.

    How do I go about excluding (from sight) a page from my navigation menu? I want to hide the pages that contain the DL links for my newsletter subscribers. Right now, my "Thank you for giving me your email address" and "here's that free book you're getting for giving over your email address" pages are right in the middle of my main navigation menu, and that's not good.

    I've downloaded two recommended plug-ins to hide my pages: Exclude Pages from Navigation and WP Custom Menu Filter Plugin. Neither of these plugins have support that can find online, and I'm wondering if there's something Genesis specific that can do to customize my menu.

    I had thought that I would only need to give the type in the page IDs to WP Custom Menu Filter, but it's asking for CSS class name. My coding skills are nill, so I'm totally above my head here. Where can I find a CSS Class name? What *is* a CSS class name?

    Screen shot of WP custom menu filter plugin

    Alternatively, I've looked for a way to try and do this the hard way and alter the code itself. I found:

    <?php $args = array(
    'authors' => '',
    'child_of' => 0,
    'date_format' => get_option('date_format'),
    'depth' => 0,
    'echo' => 1,
    'exclude' => '',
    'include' => '',
    'link_after' => '',
    'link_before' => '',
    'post_type' => 'page',
    'post_status' => 'publish',
    'show_date' => '',
    'sort_column' => 'menu_order, post_title',
    'sort_order' => '',
    'title_li' => __('Pages'),
    'walker' => new Walker_Page
    ); ?>

    from this page:

    http://codex.wordpress.org/Function_Reference/wp_list_pages#Exclude_Pages_from_List

    Where would I even find this snippet of code in my Editor menu? I've looked over each file at least twice, but I do not see it listed on any of my files in Editor.

    I have Pretty Darn Cute Design's Modern Blogger Pro, and while I'd LOVE to ask them for help I'm stymied. I purchased through Studiopress, and can't register to ask a question on PDCD's forum without in image of my receipt. Although I can find every other email I've ever gotten from Studiopress and PDCD since 2011, I can't find my receipt from 2014 when I purchased Modern Blogger Pro.

    Thanks,
    Laura

    http://www.laurafinger.com/
    June 15, 2015 at 1:32 am #156224
    Erik D. Slater
    Member

    If you want to remove options from your navigation menu from sight only then CSS will do it. When you say "from sight", you should know that the options will still exist in your HTML output ... they just won't be viewable to your visitors ... but the search engines could still index them (although there is a solution to that).

    I'm just not sure yet if that is really what you're looking for ... but if it is, the solution is very simple ... and doesn't involve the navigation walker ... which you will not find in the editor since it is part of WordPress Core 🙂

    But ... if you don't want them in your navigation menu at all, you could always just remove them from the menu structure itself ... in your admin dashboard.

    Please confirm 🙂


    Erik D. Slater: Digital Platform Consultant • LinkedIn
    June 15, 2015 at 6:43 am #156238
    Susan
    Moderator

    Laura:

    I responded to your email this morning, confirming that to create an account at Pretty Darn Cute Design, you can take a screenshot of your account area at my.studiopress.com, showing the Modern Blogger Pro theme.

    Pages aren't automatically added to your menu, unless you checked the box (below) to add them. There is no need for plugins or coding to not display a page in your menu.

    June 15, 2015 at 6:41 pm #156328
    rihannsu
    Member

    I'm sorry for the double- post. When I looked at the forum list, I never saw my post. I assumed it was indeed eaten and I started a second thread.

    David and Susan, thank you both. I went to menu just like David said, and tried to do a drag and drop of the pages I wanted hidden. It was so ridiculously easy to do, and it worked.

    Susan, I'll get a Screenshot to you right now. Thank you for your help.

    June 15, 2015 at 8:01 pm #156341
    Susan
    Moderator

    You are welcome. I will close this as resolved.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to exclude certain pages from navigation menu?’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble