Archived

This topic is now archived and is closed to further replies.

  • 0

Main nav customization


Question

Posted · Report post

Hello! Guys,

 

  I would like to change the classic main menu for another customized menu only in 7 specific pages, i've already created the other menu using the option appearance > menu. I've tried to use the drag & drop templates to customize this but, couldn't figure it out a way of doing this.

 

  Googling a bit i've found this http://jc-designs.net/blog/2011/06/displaying-menus-on-specific-pages-in-wordpress/, but i don't now if it's the best way of doing it, taking this php code and inserting inside a hook to make it works. any help?

 

 Thanks!

Share this post


Link to post
Share on other sites

7 answers to this question

Posted · Report post

Hi there,

 

There's four options built into the framework to assign different navs to a menu area, but nothing that will allow you to set two different navs to one area depending on location. I've had a look around and there's no plugins which can assist either, so it looks like using a hook is the most likely option.

 

Otherwise you'd have to use another nav container, like classic nav and style it to match the other nav as closely as possible. Then choose to hide one or the other on a per page basis using the meta options.

 

The only thing you could try is using css to hide the menu items you don't want on a per page basis by setting them to display:none using the .page-id-x prefix to your css.

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Hi! James,

 

 Thanks for you explanation.

 

 For what i need, the better is using the same type of menu as the navbar and use the hook. Now i need to find what hook correspond to the navbar in order to create a extra code to do this.

 

 Do you know what is the right hook i could use to change the navbar options?

 

 If it is too difficult, then i will hide the primary navbar(Nav classic) using the drag & drop and use de Navbar as default.

 

thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

I apologise but I am not sure what you're trying to achieve, would it be possible to go into greater detail please.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi! Danny,

 

 Here is an example of my current web site with the old theme www.intesys.com.br you're going to see a menu which is different then this one www.intesys.com.br/home/frontmail-email-marketing/.

 

 I want to make the same thing on this web site desenv.intesys.com.br/home/frontmail-email-marketing/. using pagelines.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi! Catrina, 

 

 I don't want to customize the style in this case. I want to make a menu with different options for a specific page.

 

 Like:

 

 Home page Menu with options -> home and contact

 

 and another this specific page with a different options inside the menu, like -> Service, sitemap.

 

thanks!

Share this post


Link to post
Share on other sites