• Resolved clare99

    (@clare99)


    Where am I going wrong as I can’t get it to be a drop down menu. I can only get this https://drive.google.com/open?id=1aEYqPDInPwzWenBL5PoNkktjwNjgAds5

    Edited to add I took admin over from a developer who had gone AWOL and now mostly over time have things as I like them. This it the one I have not got my head around how to change. I downloaded this plugin hoping it would help but I still end up unable to make it drop down.

    • This topic was modified 6 years, 6 months ago by clare99.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 29 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Clare,

    Please can you enable MMM on your site (or a staging site if you have one) so I can see the problem in my own browser?

    Regards,
    Tom

    Thread Starter clare99

    (@clare99)

    thanks. I have made it so you can see the problem

    Plugin Author megamenu

    (@megamenu)

    Hi Clare,

    I am not seeing it. Is https://ewre*****ment.co.uk/ the URL?

    Regards,
    Tom

    Thread Starter clare99

    (@clare99)

    not sure what it is doing now. I added it again here and now not there at all…

    https://drive.google.com/open?id=1DVOuZK1MevQooCZZfA0qGPd8w5hnjD35

    Before I did it on the customiser

    Plugin Author megamenu

    (@megamenu)

    Hi Clare,

    You need to click that ‘Enable’ checkbox. It’s not possible to enable MMM using the customiser, maybe you are thinking of a different plugin.

    Regards,
    Tom

    Thread Starter clare99

    (@clare99)

    enabled and saved – still not doing anything

    Plugin Author megamenu

    (@megamenu)

    Hi Clare,

    In that case I think there may be a problem with your theme. From what I can see it is a custom theme, so please follow this guide and make sure it meets the requirements:

    https://www.megamenu.com/documentation/custom-theme-integration/

    Regards,
    Tom

    Thread Starter clare99

    (@clare99)

    still can’t get them to come up when I just add those bits of code it does nothing or shows the code on the screen. Should I be editing the existing code to fit it in?

    	// This theme uses wp_nav_menu() in two locations.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Menu', 'twentysixteen' ),
    		'social'  => __( 'Social Links Menu', 'twentysixteen' ),
    	) );
    

    and

    		<?php  $defaults = array(
        											 'menu_class'=> 'nav navbar-nav',//also add theme custom class 
        											 'menu'  => 'header_menu'   //menu name which give in wp admin.
    											);
    	          			 					wp_nav_menu($defaults); 
    	          			 			?> 
    									
    
    Plugin Author megamenu

    (@megamenu)

    Hi Clare,

    In your “$defaults” array, in the second block of code you have pasted, you are missing the theme_location option. Please check step 2 closely on this page:

    https://www.megamenu.com/documentation/custom-theme-integration/

    Regards,
    Tom

    Thread Starter clare99

    (@clare99)

    where is part 2 supposed to innsert as it keeps showing code above and below the menu items?

    I have done it as
    wp_nav_menu( array( 'theme_location' => 'dropdown_menu') );

    Thread Starter clare99

    (@clare99)

    <?php
    /**
     * The template for displaying the header
     */
    
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class="no-js">
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
    	<link rel="profile" href="https://gmpg.org/xfn/11">
    	<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    	<?php endif; ?>
    	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css">
    		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/font-awesome.min.css">
    		<!-- Custom Css -->
    		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/style.css" >
    		<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/style-responsive.css" >
    		<link href="<?php bloginfo('template_url'); ?>/css/jcarousel.responsive.css" rel="stylesheet">
    	
    		
    	<?php wp_head(); ?>
    </head>
    
    <body>
    <header class="home-header">
    			<div class="container">
    				<div class="row">
    					<div class="col-md-3 col-sm-3 col-xs-12">
    						<div id="main-logo">
    						<?php print_r(get_custom_logo() );
    						//twentysixteen_the_custom_logo(); 
    						?> 
    							<!--<a href="index.html">
    							
    								<img src="<?php //bloginfo('template_url'); ?>/images/main-logo.png" class="img-responsive" alt="Main Logo">	 -->
    							</a>
    						</div>
    					</div>
    					<div class="col-md-9 col-sm-9 col-xs-12">
    						<div id="header-right">
    							<ul class="list-unstyled">
    								<li>
    									<a href="#"><i class="fa fa-phone-square" aria-hidden="true"></i> <a href="#"><?php if ( function_exists( 'contact_detail' ) ) { contact_detail( 'phone' ); } ?></a>
    								</li>
    								<li>
    									<a href="mailto:<?php if ( function_exists( 'contact_detail' ) ) { contact_detail( 'email' ); } ?>"><i class="fa fa-envelope-square" aria-hidden="true"></i> <?php if ( function_exists( 'contact_detail' ) ) { contact_detail( 'email' ); } ?></a>
    								</li>
    							</ul>
    						</div>
    					</div>
    				</div>
    			</div>
    			<div class="main-nav">
    				<div class="container">
    					<div class="row">
    						<div class="col-md-12 col-sm-12 col-xs-12">
    							<nav class="navbar navbar-default">
    								<div class="container-fluid">
    									<!-- Brand and toggle get grouped for better mobile display -->
    									
    									
    									<div class="navbar-header">
    										<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
    										<span class="sr-only">Toggle navigation</span>
    										<span class="icon-bar"></span>
    										<span class="icon-bar"></span>
    										<span class="icon-bar"></span>
    										</button>
    									</div>
    									<!-- Collect the nav links, forms, and other content for toggling -->
    									<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    										<!--<ul class="nav navbar-nav">
    											<li><a href="#">Home</a></li>
    											<li><a href="#">About Us</a></li>
    											<li><a href="#">Clients</a></li>
    											<li><a href="#">Candidates</a></li>
    											<li><a href="#">Contact Us</a></li>
    											
    										</ul> -->
    										<?php  $defaults = array(
        											 'menu_class'=> 'nav navbar-nav',//also add theme custom class 
        											 'menu'  => 'header_menu'   //menu name which give in wp admin.
    											);
    	          			 					wp_nav_menu($defaults); 
    	          			 			?> 
    										
    									
    									
    									</div>
    									<!-- /.navbar-collapse -->
    								</div>
    								<!-- /.container-fluid -->
    							</nav>
    						</div>
    					</div>
    				</div>
    			</div>
    		</header> <!-- /header  -->
    Plugin Author megamenu

    (@megamenu)

    Hi clare,

    You are missing the opening and closing <?php … ?> tags, which is why it is being output as text and not processed as code.

    Here is another way: go to Mega Menu > Menu Locations. Expand the location you want to display in your header, then copy the “PHP Function” code into your template.

    Regards,
    Tom

    Thread Starter clare99

    (@clare99)

    added it like this
    <?php wp_nav_menu( array( 'theme_location' => 'dropdown_menu') ); ?>

    and it looks like this

    https://drive.google.com/open?id=1oNv_IuKgNO4scw1LESTpML_MDX4CTd5o

    Plugin Author megamenu

    (@megamenu)

    Under Appearance > Menus, is there a menu tagged to your ‘dropdown_menu’ location, and is MMM enabled in the Max Mega Menu settings on the left?

    Plugin Author megamenu

    (@megamenu)

    It looks like you have MMM enabled on your “primary” menu, not the “dropdown_menu” location.

    Please go to Mega Menu > Menu Locations. Expand the “Primary” menu location and copy the PHP function directly into your header.php file (do not edit the code).

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘cannot get it to drop down’ is closed to new replies.