• Hi,

    I installed UberMenu but am having some troubles. For instance, the welcome area buton doesn’t work anymore and the menu is no longer sticky.

    Here is the piece of code I changed :

    </header><!-- #masthead -->
    	<?php endif; ?>
    
    	<?php if( function_exists( 'ubermenu' ) ): ?>
    		<?php ubermenu( 'main' , array( 'theme_location' => 'primary' ) ); ?>
    	<?php else: ?>
    		<div class="top-bar">
    			<div class="container">
    				<nav id="site-navigation" class="main-navigation col-md-12" role="navigation">
    					<button class="menu-toggle btn"><i class="fa fa-bars"></i></button>
    					<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    				</nav><!-- #site-navigation -->
    			</div>
    		</div>
    	<?php endif; ?>

    Do you know, by any chance, what’s going wrong?

    I asked UberMenu the same question but they are quite slow to find a solution…

    Thanks in advance 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You’re basically replacing the whole menu bar there with ubermenu, so it can’t be sticky because it doesn’t exist anymore. And I’m guessing your welcome area button leads to #site-navigation which also doesn’t exist?

    I don’t know how Ubermenu works, but try this:

    </header><!-- #masthead -->
    	<?php endif; ?>
    
    <div class="top-bar">
       <div class="container">
    	<nav id="site-navigation" class="main-navigation col-md-12" role="navigation">
    	   <button class="menu-toggle btn"><i class="fa fa-bars"></i></button>
    	  <?php if( function_exists( 'ubermenu' ) ): ?>
    		<?php ubermenu( 'main' , array( 'theme_location' => 'primary' ) ); ?>
              <?php endif; ?>
    	</nav><!-- #site-navigation -->
      </div>
    </div>

    Thread Starter Pidor

    (@pidor)

    Yes, the welcome area button leads to #site-navigation.

    This code doens’t work either. Thank you very much for trying anyway 🙂 I’ll try to find another solution.

    I had a quick look at the documentation for Ubermenu and they say they have automatic integration, so why not use that? Moesia meets the requirements they state there.

    Thread Starter Pidor

    (@pidor)

    Yes, that’s the first thing I tried but it doesn’t work…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘UberMenu manual integration’ is closed to new replies.