Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)