Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Customizing Navigation Menus
#2
For external links, with I18N Navigation (requires I18N plugin) you can see how to accomplish that here (half way down page "Internal/External Links").

If your top-level pages are all part of the menus you want to create (besides the external links at this point) then you can probably get away with using I18N Navigation to generate the top-level nav HTML then use CSS to hide individual links from it. For example, I usually jam a page's slug into body and also it's parent as a class like so:

Code:
<body id="d-<?php get_page_slug(); ?>" class="p-<?php echo (get_parent(false) != '') ? get_parent(false) : 'orphan' ?>">

With that in place, it's just a matter of hiding and showing navigation links using CSS, first hiding the links in a general sense, then adding them back on the home page with the `body#d-index` selector.

That said, I think there's a general need here for either a minor change to I18N Navigation which accepts an array of slugs as the first parameter and instead builds a custom menu from that set, or a new plugin that does this, maybe with the same "component" parameter for output flexibility.
Modern UI Admin for GetSimple
Watch the demo. Install this plugin. Use this CSS. Enjoy.
Reply


Messages In This Thread
Help with Customizing Navigation Menus - by sal - 2012-08-20, 14:10:46
Help with Customizing Navigation Menus - by sal - 2012-08-21, 16:50:33
Help with Customizing Navigation Menus - by sal - 2012-08-21, 16:57:06
Help with Customizing Navigation Menus - by sal - 2012-08-21, 17:09:13



Users browsing this thread: 1 Guest(s)