• Thanks everyone for taking time to read this post.

    I’ve been trying to figure what I’m doing wrong.
    I’m not a WordPress developer but someone asked me to create their site. I’m thankful for this opportunity as I teaches me a lot about WordPress, something I wanted to dig into a long time ago.

    The problem.

    I create new pages, for example ‘Team’ and ‘What is Trafficking’ and I want to add them as a submenu to my existing page ‘About’. So I go to Appearance – Menu and place the new pages underneath ‘About’. Somehow this results in the submenu item just showing up next to ‘About’ instead of underneath it.

    Obviously, I did something wrong for it to behave this way.

    My header looks as follows

    <!DOCTYPE html>
    <html>
    	<head>
    
    		<title>
    			<?php
    
    				wp_title( '-', true, 'right' );
    
    				//bloginfo( 'name');
    				?>
    
    		</title>
    		<meta name="viewport" content="width=device-width, initial-scale = 1.0">
    		<?php wp_head(); ?>
    	</head>
    	<body>
    
    		<div class="container clearfix">
    			<header>
    				<div class="grid_12 omega none">
    					<hgroup>
    						<img src="http://novahti.com/wp-content/uploads/2013/09/NOVALOGO.png" alt="nova hti logo">
    					</hgroup>
    				</div>
    				<div class="grid_12 omega">
    				<nav>
    						<?php
    
    							$args = array(
    								'menu' => 'mainnav',
    								'echo' => false
    							);
    
    							echo strip_tags(wp_nav_menu( $args ), '<a>');
    
    						?>
    					</nav>
    				</div>
    			</header>

    and the website can be found at http://www.novahti.com

    Hopefully any of you can shed some light on what I’m doing wrong. Thanks in advanced.

The topic ‘Submenu shows as menu’ is closed to new replies.