• Resolved adamjwagner

    (@adamjwagner)


    Any navigation menus that have submenus, won’t let you click on the main menu heading. Click on the main heading and it only allows you to access the drop down menu.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Brian Harris

    (@zgani)

    That is the default Bootstrap design – the top level item is meant act as a pointer to the submenu group.

    Its recommended to add a top level item via the links section leaving the url field blank – you can then proceed to add the child menu to it as normal.

    Hope that makes sense.

    Zulf

    assets –> inc –> nav-walker.php –> line 83.
    This code:

    // If item has_children add atts to a.
    			if ( $args->has_children && $depth === 0 ) {
    				$atts['href']   		= '#';
    				$atts['data-toggle']	= 'dropdown';
    				$atts['class']			= 'dropdown-toggle';
    				$atts['aria-haspopup']	= 'true';
    			} else {
    				$atts['href'] = ! empty( $item->url ) ? $item->url : '';
    			}

    Change to:

    // If item has_children add atts to a.
                if ( $args->has_children && $depth === 0 ) {
                $atts['href'] = ! empty( $item->url ) ? $item->url : '';
                //$atts['data-toggle']   = 'dropdown';
                $atts['class']           = 'dropdown-toggle';
                } else {
                $atts['href'] = ! empty( $item->url ) ? $item->url : '';
                }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navigation Menus won't let you click on them’ is closed to new replies.