June 15, 2015 at 1:14 am #156221rihannsuMember
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?
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:
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.
LauraJune 15, 2015 at 1:32 am #156224Erik D. SlaterMember
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 🙂
June 15, 2015 at 6:43 am #156238SusanModerator
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 #156328rihannsuMember
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 #156341SusanModerator
You are welcome. I will close this as resolved.
- The topic ‘How to exclude certain pages from navigation menu?’ is closed to new replies.