I’ve been writing a theme based on the Sandbox theme and have been stumped with how the menu function in Sandbox works. I’m trying to make the menu show top level pages only, rather than including sub-page dropdowns, which appears to be the default in Sandbox.
I thought this would be a relatively straight forward issue by simply adding “depth=1” to the menu function in functions.php, but for some reason when I do that, the sub menus still appear. I’m going to need to add dynamic menu highlighting after this, which is why I’m trying to resolve this issue by editing the function rather than simply using WordPress’s menu widget.
If anyone has any suggestions, I’m all ears. Thanks!
The URL of my test site is icalanguages.com/beta and the following is the code in question: