• Resolved timeforbed

    (@timeforbed)


    Hi all,

    Totally new to WordPress and only started building my site three days ago. Just as I thought I was making progress, I have somehow managed to end up with two of the same menu. And it isn’t even the menu I want 🙁

    I’ve pasted some code below from my menu.php but I’m not even sure if it’s the right thing to include. The site is http://www.medlearn-online.com

    If anyone can help I’d really appreciate it.

    Many thanks in advcance.

    <?php
    /**
     * Part Name: Default Menu
     */
    
    $ubermenu_active = function_exists( 'ubermenu' );
    $nav_classes = array( 'site-navigation' );
    if ( ! $ubermenu_active ) {
    	$nav_classes[] = 'main-navigation';
    }
    $nav_classes[] = 'primary';
    
    if ( siteorigin_setting( 'navigation_use_sticky_menu' ) ) {
    	$nav_classes[] = 'use-sticky-menu';
    }
    
    if ( siteorigin_setting( 'navigation_mobile_navigation' ) ) {
    	$nav_classes[] = 'mobile-navigation';
    }
    ?>
    
    <nav role="navigation" class="<?php echo implode( ' ', $nav_classes) ?>">
    
    	<div class="full-container">
    		<?php if( siteorigin_setting('navigation_menu_search') ) : ?>
    			<div id="search-icon">
    				<div id="search-icon-icon"><div class="vantage-icon-search"></div></div>
    				<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
    					<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" />
    				</form>
    			</div>
    		<?php endif; ?>
    
    		<?php if( $ubermenu_active ): ?>
    			<?php ubermenu( 'main' , array( 'menu' => 2 ) ); ?>
    		<?php else: ?>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'link_before' => '<span class="icon"></span>' ) ); ?>
    		<?php endif; ?>
    	</div>
    </nav><!-- .site-navigation .main-navigation -->

    [Moderator note: Please wrap code in the backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser: See http://codex.wordpress.org/Forum_Welcome#Posting_Code ; http://codex.wordpress.org/Forum_Welcome#Posting_Large_Excerpt_of_Code%5D

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Two menus appearing’ is closed to new replies.