Hello, s it possible to select the pages manually to place in Page Navigation in WordPress? Check http://www.minterest.com/ I want to add more pages but dont want to appear in the Navigation as there is no space... Please help me.... I knw that it can be done by selecting the new pages as a subpage of one of the main pages but I dont want to do like that... I want to add a page for e.g ADVERTISE so I want that page to appear in the main level.... Is it possible?
Go to the theme editor and edit the corresponding file (header or sidebar). It's quite easy, just check what's the format (styles, lists) and replace PHP by HTML.
I guess we need to change the highlighted part right? Its the part just below the BODY tag in header.php <!-- start header --> <div class="Header"><div class="LS"></div> <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <p class="Desc"><?php bloginfo('description'); ?></p> </div> <div class="Menu"> <div class="MTL"></div><div class="MTR"></div> <ul> <li><a class="<? echo (is_home())?'on':''; ?>" href="<?php echo get_option('home'); ?>/"><span>Home</span></a></li> <?php $pages = wp_list_pages('sort_column=menu_order&title_li=&echo=0'); $pages = preg_replace('%<a ([^>]+)>%U','<a $1><span>', $pages); $pages = str_replace('</a>','</span></a>', $pages); echo $pages; ?> </ul> </div>
That seems like an awful complicated way...if you don't want pages in your menu, can't you can just edit them, and check the "Draft", or "Private" box on the left side of the edit page, instead of "Publish"?
Here's what you can do, just replace the elements in green: <div class="Menu"> <div class="MTL"></div><div class="MTR"></div> <ul> <li> <a class="<? echo (is_home())?'on':''; ?>" href="<?php echo get_option('home'); ?>/"><span>Home</span></a></li> <li><a class="page_item" title="Page Title 1" href="http://www.minterest.com/desired-page-1">Page 1 Name</a></li> <li><a class="page_item" title="Page Title 2" href="http://www.minterest.com/desired-page-2">Page 2 Name</a></li> <li><a class="page_item" title="Page Title 3" href="http://www.minterest.com/desired-page-3">Page 3 Name</a></li> </ul> </div>
Hello, I have tried this today but its not working... yes i can manually add pages like this.. but the Mouseover is not working... it must change the style when we go to the new page...
I have Googled for a solution... and have discovered that...... All you need to do is to install a plugin called Exclude Pages..... http://wordpress.org/extend/plugins/exclude-pages/ This plugin adds a checkbox, “include this page in menusâ€, which is checked by default. If you uncheck it, the page will not appear in any listings of pages (which includes, and is usually limited to, your page navigation menus). Pages which are children of excluded pages also do not show up in menu listings. (An alert in the editing screen, underneath the "include" checkbox allows you to track down which ancestor page is affecting child pages in this way.)
I did the same for several of my blogs and just altered this in the header <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?> into the page numbers that i wanted, works like a charm. <?php wp_list_pages('include= 87,88, 70, 72&depth=1&title_li='); ?>