WordPress.org

Forums

Customizr
[resolved] Main menu not clickable (8 posts)

  1. j3rome
    Member
    Posted 1 year ago #

    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!

  2. rdellconsulting
    Member
    Posted 1 year ago #

  3. j3rome
    Member
    Posted 1 year ago #

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

  4. rdellconsulting
    Member
    Posted 1 year ago #

    This is not how the Theme has been designed.

    I'll flag to Nic.

  5. j3rome
    Member
    Posted 1 year ago #

    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);
  6. pdwalker
    Member
    Posted 1 year ago #

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

  7. anup.gupta23
    Member
    Posted 1 year ago #

    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

  8. ElectricFeet
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic