Jump to content

Remove menu dropdown-toggle from children

Recommended Posts

Rookie Question Alert:

Attached is my piece of code from my _main.php.

What do I need to do in this section of my code to remove the dropdown-toggle from the grandchildren of "Home" in my menu?

I don't want to remove the toggles from Home's children, but their children I do. 

if($child->numChildren > 0 && $child->url <> "/"){
        $class .= " dropdown-toggle ";
    if($page == $child){
        $class .= " active ";
    elseif ($page->parents->has($child) && $child->url <> "/") {
        $class .= " active ";


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...