WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. j3rome
    Member
    Posted 11 months 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 11 months ago #

  3. j3rome
    Member
    Posted 11 months ago #

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

  4. rdellconsulting
    Member
    Posted 11 months ago #

    This is not how the Theme has been designed.

    I'll flag to Nic.

  5. j3rome
    Member
    Posted 11 months 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 11 months ago #

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

  7. anup.gupta23
    Member
    Posted 7 months 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 7 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic