J_Szwarga Posted December 21, 2018 Share Posted December 21, 2018 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 "; } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now