Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the theme suffusion, and I'm trying to add a custom navigation menu to only one of my pages.
I've managed to get it almost working using this in my page template:

if(is_page('123')
{
    wp_nav_menu( array( 'menu' => 'my-menu' ) );
}

Where '123' is the page id of the page that I want, and 'my-menu' is the menu I want. The page is using the correct template. The correct items are generated with appropriate links, but they are rendered as an unordered list like so:

  • Item 1
  • Item 2
  • Item 3
  • Item 4

If I have the menu bar rendered by my theme (by placing it in one of the slots in the dashboard), it renders this menu horizontally as attractive-looking buttons.

When I do it this way, it correctly only shows up on the page that I want, but is rendered as a vertical bulletted list.

What do I need to change so that the menu is rendered as if done by the theme?

share|improve this question

1 Answer 1

Your theme's CSS stylesheet is controlling the appearance of the menu, and targeting it via the div that contains it:

#head-nav ul li

Your menu either has to appear within the same markup, or your CSS styles need to be appended / modified to target your new menu.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.