• Hi all,

    My Theme (Shaka Theme) wasn’t listed anywhere so I’m posting here.

    An issue that’s been bugging me for a while is that by default in the mobile menu of my theme, ALL menu items auto expand so it makes it hard to navigate if you have a lot of sub-menu items.

    I’m trying to have my sub-menu items collapse with a drop-down arrow. Something that seems fairly simple but there are no options for adjust this in WordPress.

    I managed to find some code in Header.php that I believe is the mobile menu:

    <!– Toggle button for Main Navigation on mobile –>
    <button class=”btn btn-primary header__navbar-toggler hidden-lg-up js-sticky-mobile-option” type=”button” data-toggle=”collapse” data-target=”#shaka-main-navigation”><i class=”fa fa-bars hamburger”></i> <span><?php esc_html_e( ‘MENU’ , ‘shaka-pt’ ); ?></span></button>
    <!– Main Navigation –>
    <nav class=”header__navigation collapse navbar-toggleable-md js-sticky-desktop-option” id=”shaka-main-navigation” aria-label=”<?php esc_html_e( ‘Main Menu’, ‘shaka-pt’ ); ?>”>
    <?php
    if ( has_nav_menu( ‘main-menu’ ) ) {
    wp_nav_menu( array(
    ‘theme_location’ => ‘main-menu’,
    ‘container’ => false,
    ‘menu_class’ => ‘main-navigation js-main-nav js-dropdown’,
    ‘walker’ => new Aria_Walker_Nav_Menu(),
    ‘items_wrap’ => ‘<ul id=”%1$s” class=”%2$s” role=”menubar”>%3$s‘,
    ) );
    }
    ?>
    <?php

    Any help would be greatly appreciated

    thanks

    Christian

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

Viewing 1 replies (of 1 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not an Everything else WordPress topic.

    My Theme (Shaka Theme) wasn’t listed anywhere so I’m posting here

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    https://www.proteusthemes.com/help/

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 1 replies (of 1 total)
  • The topic ‘Dropdown / Collapse mobile menu’ is closed to new replies.