Museum theme responsive menu toggle not working
-
Hi there,
My mobile menu toggle isn’t responding when you click on it. I have been editing the code in the header.php, functions.php and style.css and am fairly sure it has something to do with the code in my header.php, but haven’t been able to find out what’s wrong.
The header.php is below
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> * * @package Museum */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <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"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> <!--[if lt IE 9]> <script src="<?php echo esc_url( get_template_directory_uri(). '/assets/js/html5shiv.js' ); ?>"></script> <![endif]--> </head> <body <?php body_class(); ?>> <nav id="site-navigation" class="main-navigation" role="navigation"> <div class="nav-wrapper <?php museum_menu_class(); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'container_class' => 'secondary-menu' ) ); wp_nav_menu( array( 'theme_location' => 'social', 'container_class' => 'social-menu', 'fallback_cb' => false ) ); ?> </div> </nav><!-- #site-navigation --> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <?php $header_position = get_theme_mod( 'header_position', 'right' ); ?> <div class="site-branding text-<?php echo esc_attr( $header_position ); ?>"> <?php if ( get_header_image() ) : ?> <div class="site-logo"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" width="<?php echo absint( get_custom_header()->width ); ?>" height="<?php echo absint( get_custom_header()->height ); ?>"> </a> </div> <?php endif; // End header image check. ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> </div> </header><!-- #masthead --> <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle"><?php _e( 'Menu', 'museum' ); ?></button> <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'museum' ); ?></a> <div class="nav-wrapper <?php museum_menu_class(); ?>"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'main-menu' ) ); wp_nav_menu( array( 'theme_location' => 'mobile', 'container_class' => 'mobile-menu', 'fallback_cb' => false ) ); ?> </div> </nav><!-- #site-navigation --> <div id="content" class="site-content">
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Museum theme responsive menu toggle not working’ is closed to new replies.