modified id for menus in header and js
This commit is contained in:
parent
cf2d611a09
commit
bd41d7332f
|
@ -46,7 +46,7 @@
|
|||
<?php endif; ?>
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
<nav id="site-navigation" class="main-navigation">
|
||||
<nav id="site-navigation-main" class="main-navigation">
|
||||
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'ofisuport' ); ?></button>
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
|
@ -60,7 +60,7 @@
|
|||
</div>
|
||||
<div class="secondary">
|
||||
<?php the_header_image_tag(); ?>
|
||||
<nav id="site-navigation" class="secondary-navigation">
|
||||
<nav id="site-navigation-secondary" class="site-navigation secondary-navigation">
|
||||
<button class="menu-toggle" aria-controls="secondary-menu" aria-expanded="false"><?php esc_html_e( 'Secondary Menu', 'ofisuport' ); ?></button>
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* navigation support for dropdown menus.
|
||||
*/
|
||||
( function() {
|
||||
const siteNavigation = document.getElementById( 'site-navigation' );
|
||||
const siteNavigation = document.getElementById( 'site-navigation-main' );
|
||||
|
||||
// Return early if the navigation doesn't exist.
|
||||
if ( ! siteNavigation ) {
|
||||
|
|
Loading…
Reference in New Issue