{"id":6022956,"date":"2015-04-16T16:53:27","date_gmt":"2015-04-16T16:53:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/museum-theme-responsive-menu-toggle-not-working\/"},"modified":"2016-08-24T14:50:42","modified_gmt":"2016-08-24T14:50:42","slug":"museum-theme-responsive-menu-toggle-not-working","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/museum-theme-responsive-menu-toggle-not-working\/","title":{"rendered":"Museum theme responsive menu toggle not working"},"content":{"rendered":"<p>Hi there, <\/p>\n<p>My mobile menu toggle isn&#8217;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&#8217;t been able to find out what&#8217;s wrong.<\/p>\n<p>The header.php is below<\/p>\n<pre><code>&lt;?php\n\/**\n * The Header for our theme.\n *\n * Displays all of the &lt;head&gt; section and everything up till &lt;div id=&quot;content&quot;&gt;\n *\n * @package Museum\n *\/\n?&gt;&lt;!DOCTYPE html&gt;\n&lt;html &lt;?php language_attributes(); ?&gt;&gt;\n&lt;head&gt;\n&lt;meta charset=&quot;&lt;?php bloginfo( &#039;charset&#039; ); ?&gt;&quot;&gt;\n&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;\n&lt;link rel=&quot;profile&quot; href=&quot;http:\/\/gmpg.org\/xfn\/11&quot;&gt;\n&lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo( &#039;pingback_url&#039; ); ?&gt;&quot;&gt;\n\n&lt;?php wp_head(); ?&gt;\n&lt;!--[if lt IE 9]&gt;\n&lt;script src=&quot;&lt;?php echo esc_url( get_template_directory_uri(). &#039;\/assets\/js\/html5shiv.js&#039; ); ?&gt;&quot;&gt;&lt;\/script&gt;\n&lt;![endif]--&gt;\n\n&lt;\/head&gt;\n\n&lt;body &lt;?php body_class(); ?&gt;&gt;\n&lt;nav id=&quot;site-navigation&quot; class=&quot;main-navigation&quot; role=&quot;navigation&quot;&gt;\n\t\t&lt;div class=&quot;nav-wrapper &lt;?php museum_menu_class(); ?&gt;&quot;&gt;\n\t\t\t&lt;?php\n\t\t\t\twp_nav_menu( array(\n\t\t\t\t\t&#039;theme_location&#039;  =&gt; &#039;secondary&#039;,\n\t\t\t\t\t&#039;container_class&#039; =&gt; &#039;secondary-menu&#039;\n\t\t\t\t) );\n\n                wp_nav_menu( array(\n\t\t\t\t\t&#039;theme_location&#039;  =&gt; &#039;social&#039;,\n\t\t\t\t\t&#039;container_class&#039; =&gt; &#039;social-menu&#039;,\n\t\t\t\t\t&#039;fallback_cb&#039; =&gt; false\n\t\t\t\t) );\n\t\t\t?&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/nav&gt;&lt;!-- #site-navigation --&gt;\n\n&lt;div id=&quot;page&quot; class=&quot;hfeed site&quot;&gt;\n\n\t&lt;header id=&quot;masthead&quot; class=&quot;site-header&quot; role=&quot;banner&quot;&gt;\n\t\t&lt;?php $header_position = get_theme_mod( &#039;header_position&#039;, &#039;right&#039; ); ?&gt;\n\t\t&lt;div class=&quot;site-branding text-&lt;?php echo esc_attr( $header_position ); ?&gt;&quot;&gt;\n\n\t\t\t&lt;?php if ( get_header_image() ) : ?&gt;\n\t\t\t&lt;div class=&quot;site-logo&quot;&gt;\n\t\t\t\t&lt;a href=&quot;&lt;?php echo esc_url( home_url( &#039;\/&#039; ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;\n\t\t\t\t&lt;img src=&quot;&lt;?php header_image(); ?&gt;&quot; width=&quot;&lt;?php echo absint( get_custom_header()-&gt;width ); ?&gt;&quot; height=&quot;&lt;?php echo absint( get_custom_header()-&gt;height ); ?&gt;&quot;&gt;\n\t\t\t\t&lt;\/a&gt;\n\t\t\t&lt;\/div&gt;\n\t\t\t&lt;?php endif; \/\/ End header image check. ?&gt;\n\n\t\t\t&lt;h1 class=&quot;site-title&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_url( home_url( &#039;\/&#039; ) ); ?&gt;&quot; rel=&quot;home&quot;&gt;&lt;?php bloginfo( &#039;name&#039; ); ?&gt;&lt;\/a&gt;&lt;\/h1&gt;\n\n\t\t&lt;\/div&gt;\n\t&lt;\/header&gt;&lt;!-- #masthead --&gt;\n&lt;nav id=&quot;site-navigation&quot; class=&quot;main-navigation&quot; role=&quot;navigation&quot;&gt;\n    &lt;button class=&quot;menu-toggle&quot;&gt;&lt;?php _e( &#039;Menu&#039;, &#039;museum&#039; ); ?&gt;&lt;\/button&gt;\n\t\t&lt;a class=&quot;skip-link screen-reader-text&quot; href=&quot;#content&quot;&gt;&lt;?php _e( &#039;Skip to content&#039;, &#039;museum&#039; ); ?&gt;&lt;\/a&gt;\n\t\t&lt;div class=&quot;nav-wrapper &lt;?php museum_menu_class(); ?&gt;&quot;&gt;\n\t\t\t&lt;?php\n\t\t\t\twp_nav_menu( array(\n\t\t\t\t\t&#039;theme_location&#039;  =&gt; &#039;primary&#039;,\n\t\t\t\t\t&#039;container_class&#039; =&gt; &#039;main-menu&#039;\n\t\t\t\t) );\n\n                wp_nav_menu( array(\n\t\t\t\t\t&#039;theme_location&#039;  =&gt; &#039;mobile&#039;,\n\t\t\t\t\t&#039;container_class&#039; =&gt; &#039;mobile-menu&#039;,\n                    &#039;fallback_cb&#039; =&gt; false\n\t\t\t\t) );\n\t\t\t?&gt;\n\t\t&lt;\/div&gt;\n\n\t&lt;\/nav&gt;&lt;!-- #site-navigation --&gt;\n\n\t&lt;div id=&quot;content&quot; class=&quot;site-content&quot;&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-6022956","topic","type-topic","status-closed","hentry","topic-tag-header","topic-tag-menu","topic-tag-mobile","topic-tag-navigation","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6022956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6022956\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6022956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}