• Hi
    I had created my menu structure using Pages. However I need to make some of my top level menu items null links.

    I believe that I need to create a new menu in Themes > Appearance > menus. is this correct please?

    Also, if so, how do I then force my menu to be used?

    Many thanks

    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Alex H

    (@alex-h)

    Update:
    I have just seen that my theme does not natively support menus. IS there anyway to create top level null links?

    Why not make your theme support custom menus? See Navigation_Menus

    Thread Starter Alex H

    (@alex-h)

    Thanks for your response and that would be a good idea. I tried to follow the tutorial and the first part went Ok and indeed my theme’s message about not supporting menus disappears.

    My problem is that I don’t seem to be able to get the right point in header.php for inserting the <?php wp_nav_menu( array( ‘theme_location’ => ‘header-menu’ ) ); ?> line.

    I am summing that it should go in this area:

    <div id="navbar">
    
    	<div id="navbarleft">
    		<strong><ul id="nav">
    
    <li><a>">Home</a></li>
    			<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&exclude=147,149,162'); ?>
    		</strong>
    	</div>
    	<?
    include_once("style.php");
    ?> <div id="navbarright">
    		<a>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Subscribe to <?php bloginfo('name'); ?>" /></a><a>">News Feed</a>
    	</div>
    
    </div>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]

    I have put in in place of the lines I have highlighted, but when i view the page, the menu is just listed vertically.

    the menu is just listed vertically.

    You’ll have to style it through css. When themes support menus, authors also add appropriate css to make them look the way they are.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Force Main Menu’ is closed to new replies.