I'm using this theme, and I'm trying to add my own custom nav-walker. The problem is, when trying to use that nav-walker, I run into errors. Below is that class I am using. At this point I'm trying to get it to display. The error I'm receiving is "Invalid arguments passed" on the first line that it tries to use $item->classes. If I do a dump of item, it has the page info (ID, post-author, post date, etc...) but it doesn't have any of the things necessary for a menu item, like url, classes or title. Also, my menu items that aren't posts/pages don't come through at all. (I made a custom link that goes to google for a test).
Is there any reason you can think of that this would ne happening with this theme? If I try a generic theme like twenty-twenty, the same code above works.
I'm using this theme, and I'm trying to add my own custom nav-walker. The problem is, when trying to use that nav-walker, I run into errors. Below is that class I am using. At this point I'm trying to get it to display. The error I'm receiving is "Invalid arguments passed" on the first line that it tries to use $item->classes. If I do a dump of item, it has the page info (ID, post-author, post date, etc...) but it doesn't have any of the things necessary for a menu item, like url, classes or title. Also, my menu items that aren't posts/pages don't come through at all. (I made a custom link that goes to google for a test).
I'm adding the call to navwalker in header.php. I replaced the default call with a call to mine
Is there any reason you can think of that this would ne happening with this theme? If I try a generic theme like twenty-twenty, the same code above works.
Thank you.