• Resolved memusah

    (@memusah)


    In my theme when i view the moible menu there is span with class “dropdown-menu-toggle” is missing under parent menu “menu-item”

    <li class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-42 current_page_item menu-item-has-children menu-item-76"><a href="/about/">About</a>
    <ul class="sub-menu">
    	<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-372"><a href="/about/our-spa/">Our Spa</a></li>
    	<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-373"><a href="/about/dr-kolder/">Dr. Kolder</a></li>
    	<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-374"><a href="/about/our-team/">Our Team</a></li>
    </ul>
    </li>

    As i see your demo mobile menu, i can clearly see the those span in sub menu items.

    <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1388 sfHover"><a href="http://demo.generatepress.com/sample-page/">Sample<span role="button" class="dropdown-menu-toggle" aria-expanded="true" tabindex="0"></span></a><ul class="sub-menu toggled-on"><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1389"><a href="#">Sub Page 1<span role="button" class="dropdown-menu-toggle" aria-expanded="false" tabindex="0"></span></a> .....

    Also i am facing the js error when i click on toggle menu in mobile

    Uncaught TypeError: Cannot read property ‘setAttribute’ of null at HTMLButtonElement.<anonymous> (menu.min.js?ver=2.0.2:1)

    https://s45dev.com/pacificamedicalspa/camarillo/about/

    Please help me to fix this issue.

    Thanks alot

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    You might be using a plugin which is altering the menu HTML markup.

    Can you try deactivating your plugins one by one to see if the arrows re-appear?

    Thread Starter memusah

    (@memusah)

    I think the issue is, its adding only to primary menu. I have three different menus and only one can be the primary menu. When a menu is set primary it adds span (issue mentioned above). How can I set if the menu is even not primary can use same?

    Thanks

    Thread Starter memusah

    (@memusah)

    No worries, i have fixed the issue by overriding this function generate_dropdown_icon_to_menu_link from navigation.php file to my functions.php and its all working now 🙂

    Thank you for the wonderful and amazing theme…
    Cheers

    Theme Author Tom

    (@edge22)

    Glad you got it working! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Submenu not adding span with class dropdown-menu-toggle in mobile’ is closed to new replies.