• 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 regards

    header.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">&nbsp;</div>
    			<?php } ?>
    
    			<?php if (option::get('search_form') == 'on') { ?>
    			<div id="search_form">
    			<?php get_template_part('searchform'); ?>
    			</div>
    			<?php } ?>
    
    			<div class="cleaner">&nbsp;</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">&nbsp;</div>
    		</div><!-- end .wrapper -->
    
    	</div><!-- end #navigation -->
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter abdel_web

    (@abdel_web)

    functions.php:

    <?php
    /**
     * WPZOOM Theme Functions
     *
     * Don't edit this file until you know what you're doing. If you mind to add
     * functions and other hacks please use functions/user/ folder instead and
     * functions/user/functions.php file, those files are intend for that and
     * will never be overwritten in case of a framework update.
     */
    
    /**
     * Paths to WPZOOM Theme Functions
     */
    define("FUNC_INC", get_template_directory() . "/functions");
    
    define("WPZOOM_INC", FUNC_INC . "/wpzoom");
    define("THEME_INC", FUNC_INC . "/theme");
    define("USER_INC", FUNC_INC . "/user");
    
    /** WPZOOM Framework Core */
    require_once WPZOOM_INC . "/init.php";
    
    /** WPZOOM Theme */
    require_once THEME_INC . "/functions.php";
    require_once THEME_INC . "/sidebar.php";
    require_once THEME_INC . "/post-options.php";
    
    $wpzoomColors = array();
    $wpzoomColors['blue'] = 'Blue';
    $wpzoomColors['brown'] = 'Brown';
    $wpzoomColors['darkblue'] = 'Dark Blue';
    $wpzoomColors['dark'] = 'Dark';
    $wpzoomColors['lightblue'] = 'Light Blue';
    $wpzoomColors['orange'] = 'Orange';
    $wpzoomColors['paleblue'] = 'Pale Blue';
    $wpzoomColors['teal'] = 'Teal';
    
    /* Theme widgets */
    require_once THEME_INC . "/widgets/social.php";
    require_once THEME_INC . "/widgets/recentposts.php";
    require_once THEME_INC . "/widgets/recentcomments.php";
    require_once THEME_INC . "/widgets/popularnews.php";
    require_once THEME_INC . "/widgets/flickrwidget.php";
    require_once THEME_INC . "/widgets/twitter.php";
    require_once THEME_INC . "/widgets/facebook-like-box.php";
    require_once THEME_INC . "/widgets/featured-category.php";
    require_once THEME_INC . "/widgets/featured-categories.php";
    require_once THEME_INC . "/widgets/featured-carousel.php";
    require_once THEME_INC . "/widgets/tabs.php";
    
    /** User functions */
    require_once USER_INC . "/functions.php";
    Thread Starter abdel_web

    (@abdel_web)

    website:
    https://lematch.ma
    regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘submenus are not displayed’ is closed to new replies.