If you have any Feature Requests or any Questions, please add a new topic to this 'forum'.
If you have any Feature Requests or any Questions, please add a new topic to this 'forum'.
Hi there, I'm trying to set up a website using the theme "gears" I have it working the way I want but I can't get secondary links working.
I would really like to have those functioning.
I've downloaded WP-Menu and installed it, but... what do I do now?
There is no configuration for it in the main admin interface. How can I change the settings? How will I know it's working?
Thanks
James
Hey James,
Currently, there's no admin interface (but that is planned) and there are plans to make it easier to implement in your theme.
But for now, wherever you want your menu to appear, enter this code:
For Single level nav:
<?php wp_menu('nav_type=single'); ?>
For Secondary level nav (sub pages of a page):
<?php wp_menu('nav_type=secondary'); ?>
For Site Map nav:
<?php wp_menu('nav_type=sitemap'); ?>
By "wherever you want your menu to appear" do you mean the header.php ?
Or does this go in the CSS file.
I'm just trying to figure out the implementation.
Thanks for your help
James
Ok. I think I see where it goes. In the case of gear it goes in the head.php file, which is were the menu is printed.
Now the question is: how can i get this to look the way I want it to look?
How do I tell it where to look in the CSS for style info?
Thanks
James
Find out how your previous menu was styled (IDs or Classes) and follow the options to customize how WP-Menu will output:
http://wordpress.org/extend/plugins/wp-menu/
I'm more than happy to help you find this out if you send me your CSS file and your head.php file (as it was before you added wp_menu to it)
Ah! So I should tell it to use "Nav Id" and give that a value (like Nav)?
Just to be sure I'd like to send you you my css and head.php
I'll need your email address, though.
If you'd like you can email me at rubinstein(dot)james(at)gmail(dot)com
thanks
Hi,
Thanks for the great plug-in!
I do have a quick question though; is it possible in "sitemap" mode to list Blog posts as well as pages? (assuming the WP installation's home page is actually a Page as set in the "Reading" options!)
Once again, thanks for your work on this plug-in and TIA for your help with this!
It *should* be possible, I will have to look into that, but thank you for the great feature request!
Hi Scott,
your plug-in is in use (blog is in preparation) and works like a charm.
But I can´t find a way to give a special class to special menu items.
I want to highlight parent links with a certain background-picture to make obvious, that they have children, when they are collapsed.
Any idea? Meanwhile I try to use Custom Fields, uaahh...
Thanks in advance!
Adrian, try using some css code to target just the first level of the menu, then target the second level like this:
#wp_menu_id li {yourcode here}
#wp_menu_id li ul li {yourcode here}Thanks for your quick answer. But I think I didn´t present the problem correctly:
What you were showing me was the way to generally highlight the list-items via CSS. The "current"-class works perfect nad if the page has children they will show and the others are still collapsed.
But only A FEW of the items are parents and should show a different background-image (arrow, plus-sign,...) on the home page, when all are collapsed. Sorry for my poor English. And thanks for your friendly support.
I could not show the site yet, because the client is anxious...
This plugin is amazing. Exactly what I've been looking for. Where can I donate some cash for your efforts?
i can't see a way to add a separator inbetween menu items apart from using css although that would require a the last or first of the menu items to have a different rule. for example:
desired output
item1 : item2 : item3 : item4
each colon would have to belong to an item and one of them at the end would have to have its colon removed (ouch)
i've worked out a hack which would make it work by adding two menus beside each other, one containing all the items apart from one which would be in the other menu. they have separate classes for the appropriate styling.
thanks for making the plugin!! has been very useful!
@Adrian Verstuyft - I see what you mean, I'll add an option that gives each LI a unique ID in the next version.
@eggnog - Donations are accepted via PayPal at sc0ttkclark (at) gmail . com
@lupark - Perhaps what I'm doing for Adrian (see above), you could use this to also identify the beginning and ending menu items via CSS to set them apart from the rest of the items?
Hi Scott,
I'm trying to implement some of the options made available in the plugin, namely adding a link to my homepage.
I've tried variations on the show_home and home_path with no success. What's throwing me are the arguments. For instance, if I was to us show_home it would be like:
`show_home=1&home_path=???'
First off, is 1 like a boolean value of true or false? Then with the home_path, is that to be the name of my page used for the homepage, or should it be the complete url to my homepage? Is home_link required?
Apologies for the green questions. I think your plugin is great. Perhaps including a couple of examples in your readme will better explain these implementation issues.
@eggnog - show_home / home_path / home_link are only used if you have a page in your navigation specifically for Home. To add a new Home link, look at the custom link options recently added to WP-Menu.
They will let you add a new custom menu item to the front of the menu, using start_title=Home&start_link=/
@sc0ttkclark
Great news! Unique IDs for each LI! Can you please tell us, when you will be able to implement the new feature? The client makes the whole dev dependant on this...
I checked the plugin code, it looks like I've already got this in there using classes:
unique_class=1
and
unique_prefix=submenu
to output each item like this:
<li class="submenu-PAGEID">
Yes! Got it working. Thanks a lot.
One suggestion: wouldn´t it be easier to provide a special class to chosen IDs in the argument string, like that:
wp_menu ('unique_class=name_of_class&unique_ids=1,5,7,8,12');
so we can use only one line of CSS:
ul#leftnav li.name_of_class {background:url(images/menu_item_is_parent.gif) 0 5px no-repeat;}
with following output (to still have the possibility to adress special IDs):
<li class="name_of_class page_1">
Instead of inflating the CSS like that:
ul#leftnav li.page_1,
ul#leftnav li.page_5,
ul#leftnav li.page_7,
ul#leftnav li.page_8,
ul#leftnav li.page_12
{background:url(images/menu_item_is_parent.gif) 0 5px no-repeat;}I like what you've thought up here, very good idea! I'll look into adding this soon :-)
Can you explain how to use the c2p options? I've got a category called 'Frequently Asked Questions' that I'd like to have show up as a nav item.
I was trying to create a menu based on your plugin but using background images assigned with unique_class through css (instead of text).
I modified your plugin and added link_wrap parameter which allows me to wrap links into tags like this: <a href=""><SPAN>navigation link</SPAN></a> and then set #nav li a span to display:none.
Some better way might be to actually display the images somehow (might be more SEO friendly ?) but this is just an idea.
Anyway this is really great plugin!
@philipz - I really like this idea, I'll add a optional wrapper for each item inside the link (span) to help with styling.
@jayred - We're getting ready to launch our new http://www.vizioninteractive.com/ site which will have much more in-depth documentation of this and our other plugins. ETA is about a week or less.
sc0ttkclark,
thanks so much for this killer plugin. I think this should be in the WP core. One thing I'd love in addition to what you have built already would be depth level classes, for example, for the "active" class. I've worked around this, but especially in the single_secondary setup it would be great to have a level added to the active class.
Thanks again. CORE. Go core with this.
And support for hidden pages would be great. I know I can exclude them manually, but using the hidden status would be fantastic!
sc0ttkclark,
I want to add my voice to the cheers for this plugin. It's the only one I've found so far that seems really robust enough for a good size CMS.
One snag I've found is distinguishing an active item from its ancestors. IOW, the active_class is assigned to an item, but also to its parent item. I want to style them differently but haven't figured out how since they both get the same class selector.
Is there an easy way to assign a different class to the parent of an active item?
thanks
Hi - firstly, fantastic plugin!! Its been a big help and worked where others have failed for me so far!
I'm using the wp_menu plugin to create the main horizontal nav with child page drop downs from parent page ids. Works great so far - unfortunately I don't current have a link to site as I'm running the dev on a local machine.
I have one question and one feature request.
First the question:
How can I incorporate category pages into my menu? I don't really understand the c2p_cid and c2p_pid aspect of the plugin. I can't get that to work for me. Could you please explain a little about what the c2p strings do and how to implement them. There are two category pages I'd like to include in my menu. Please see the diagram below where I'd like to add category page links.
Feature request:
I think it would be useful if the was a function within the plugin that redirects the parent page to the first child page in a menu list. I'm using parent pages as Categories with child pages within those parent page categories forming drop menus. i.e.
| Parent Cat A | . . . . . . | Parent Cat B | . . . . . . | Parent Cat C |
| child A1 | . . . . . . . . . | child B1 | . . . . . . . . . | child C1 |
| child A2 | . . . . . . . . . | child B2 | . . . . . . . . . | child C2 |
| child A3 | . . . . . . . . . | cat page? |. . . . . . . . | cat page? |
When a user clicks on 'Parent Cat A' it'd be useful if there was an option to take them to 'child A1', Parent B to child B1 etc . I've achieved this by using a redirect in a page template, but think many creating horizontal drop nav would find it useful.
Any help hugely appreciated
Thanks
Stef
Wondering about the secondary navigation with this plugin...
I used this declaration in my sidebar.php file because I want to display a secondary navigation on every page:
<?php
wp_menu('nav_type=secondary&heading=h2&div=1');
?>
I was expecting to see an unordered list of child pages with the parent page listed as an <h2> above all wrapped in a nice little <div>.
The problem is that the hrefs for the child links are all missing a backslash before the child page name.
I.E. http://www.website.com/parent-namechild-name
Obviously that isn't working. Any idea how I can get a backslash between [parent-name] and [child-name]?
The problem is that the hrefs for the child links are all missing a backslash before the child page name.
mark007 - I've just been going through exactly the same problem and think I've solved it. Your milage may vary but the culprit for me was a plugin used to remove the category base from the permalink or otherwise alter the permalink in someway. Unfortunately I can't remember specifically which plugin it was as I tried at least half a dozen. I'll recognise it if I see it again though and let you know.
The plug-in I was using allowed the user to modify the permalink and I'd missed off a trainlng /
Have you altered your permalinks or removed your category base in any way?
This topic has been closed to new replies.