submenus are not displayed
-
Hello there
spotpress on my theme, I have created sub ??menus, but these do not appear in the first time, they appear but only if I open a pages or posts.
best regardsheader.php
<!DOCTYPE html> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title><?php ui::title(); ?></title> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> <!--[if IE 7 ]><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie7.css" /><![endif]--> </head> <body <?php body_class(); ?>> <div id="container"> <div id="header"> <div class="wrapper"> <div id="logo"> <a href="<?php echo home_url('/'); ?>"><img src="<?php echo ui::logo(); ?>" alt="<?php bloginfo('name'); ?>" /></a> </div><!-- end #logo --> <?php if (option::get('banner_header_enable') == 'on') { ?> <div id="bannerHead"> <?php if ( option::get('banner_header_html') <> "") { echo stripslashes(option::get('banner_header_html')); } else { ?> <a href="<?php echo option::get('banner_header_url'); ?>" rel="nofollow" title="<?php echo option::get('banner_header_alt'); ?>"><img src="<?php echo option::get('banner_header'); ?>" alt="<?php echo option::get('banner_header_alt'); ?>" /></a> <?php } ?> </div><!-- end .header-banner --> <div class="cleaner"> </div> <?php } ?> <?php if (option::get('search_form') == 'on') { ?> <div id="search_form"> <?php get_template_part('searchform'); ?> </div> <?php } ?> <div class="cleaner"> </div> </div><!-- end .wrapper --> </div><!-- end #header --> <div id="navigation"> <div class="wrapper"> <div id="nav" class="dropdown"> <?php wp_nav_menu( array('container' => '', 'container_class' => '', 'menu_class' => 'mainmenu', 'sort_column' => 'menu_order', 'theme_location' => 'primary' ) ); ?> </div> <div class="cleaner"> </div> </div><!-- end .wrapper --> </div><!-- end #navigation -->
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘submenus are not displayed’ is closed to new replies.