This topic has 1 reply, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #133988
     johnand
    Participant

    Currently Kleo main menu navigation allows menu depth of 2 (parent,child,grandchild). How do I allow a menu depth of 3 (parent,chid,grandchild,greatgrandchild)?

    #134006
     Radu
    Moderator

    Hi,

    There it’s already to 3 levels

    Home
    -Home
    –Home

    WE don’t’ have a quick solution for 4 level depth ,you can increase the menu depth but is not sufficient it should be made a full CSS for level 4 menu, so you will have to do it yourself , the responsible file for increasing depth is /wp-content/themes/kleo/page-parts/general-header-section.php

    $primary_menu = wp_nav_menu( array(
    ‘theme_location’ => ‘primary’,
    ‘depth’ => 3,
    ‘container’ => ‘div’,
    ‘container_class’ => ‘collapse navbar-collapse nav-collapse’,
    ‘menu_class’ => ‘nav navbar-nav’,
    //’fallback_cb’ => ‘kleo_walker_nav_menu::fallback’,
    ‘fallback_cb’ => ”,
    ‘walker’ => new kleo_walker_nav_menu(),
    ‘echo’ => false
    )
    );

    At line 33 or around look for depth and change from 3 to 4, copy this file to child to have it after theme update also you will write your own css for the level 4 or hire a developer.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?