• Resolved j3rome

    (@j3rome)


    i have the following problem:

    If the main menu contains a submenu the main navigation is no longer clickable.

    But right mouse click and “open” it works.

    What is the problem?

    Thx for your help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter j3rome

    (@j3rome)

    Thx, i know the first link but is there no alternative code / fix? to make the Parents working? 🙁

    This is not how the Theme has been designed.

    I’ll flag to Nic.

    Thread Starter j3rome

    (@j3rome)

    i have fixed the problem.

    wp-content/themes/customizr/parts/class-header-nav_walker.php

    change on line 32:

    if ( $item->is_dropdown && ( $depth === 0)) {
            $item_html = str_replace( '<a' , '<a class="dropdown-toggle"' , $item_html);

    That won’t work if you have submenus under your main menu.

    thanks it helps a lot the complete solution is to make your menu
    parent menu on mouse hover should show child menu(sub menu),And on click to the parent menu tab should forward us to page associated with it
    solution is

    open style.css and add this
    /*make the menu sub-menu items drop down on mouse hover */
    ul.nav li.dropdown:hover > ul.dropdown-menu{
    display: block;
    margin: 0;
    }
    then open wp-content/themes/customizr/parts/class-header-nav_walker.php
    if ( $item->is_dropdown && ( $depth === 0)) {
    $item_html = str_replace( ‘<a’ , ‘<a class=”dropdown-toggle” data-toggle=”dropdown” data-target=”#”‘ , $item_html);

    and remove this
    data-toggle=”dropdown” data-target=”#”
    now your if condition look like this

    if ( $item->is_dropdown && ( $depth === 0)) {
    $item_html = str_replace( ‘<a’ , ‘<a class=”dropdown-toggle”‘ , $item_html);

    thank to every one

    You can now simply select this option in Customiz’It.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Main menu not clickable’ is closed to new replies.