Custom "menu-toggle" for secondary menu
-
Hello,
I have modified child theme of Twenty Thirteen to came up with two navigation menus, the exact code below:
<div id="sitemap-lang" class="sitemap-lang"> <nav id="sitemap-navigation" class="navigation sitemap-navigation" role="navigation"> <h3 class="menu-toggle"><?php _e( 'Language', 'twentythirteen' ); ?></h3> <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a> <?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'menu_class' => 'sitemap-menu' ) ); ?> </nav><!-- #site-navigation --> </div><!-- #navbar --> <div id="navbar" class="navbar"> <nav id="site-navigation" class="navigation main-navigation" role="navigation"> <h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3> <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a> <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'nav-menu' ) ); ?> <div id="new-search" class="new-search"> <?php get_search_form(); ?> </div><!-- #New Search --> </nav><!-- #site-navigation --> </div><!-- #navbar -->However, once I clicked on “Toggle button” the same menu appear. Who exactly control toggle menu and where I can specified secondary menu for new toggle button?
Waiting for response.Regards,
Andrius
-
Can you link the page with the issue?
Yes, of course http://www.uniccloud.com/. When you minimized your browser you will noticed that second “Toggle button” redirect to the same menu selection. The question would be, who exactly control toggle menu and where I can specified secondary menu for new toggle button?
Regards,
AndriusHere’s your JS file that controls the toggling of the menu http://www.uniccloud.com/wp-content/themes/unictheme/js/functions.js?ver=2013-07-18
It doesn’t look like you’re running a Child Theme, did you instead just copy the Twenty Thirteen folder and rename it?
I will check that file in order to configure control of toggling and afterwards tell how it goes. Yes, I moved whole Twenty Thirteen theme to another folder, did I done any offence?
Regards,
AndriusHello Andrew,
Thanks for your answer about Toggle button configuration location, the rest of the part I managed to done by my self.
Regards,
Andrius
The topic ‘Custom "menu-toggle" for secondary menu’ is closed to new replies.
