I found the issue. The theme had a different name for the main menu. I simply changed the variable ‘primary’ for the themes own variable and it worked.
Thanks for your help and your awesome bit of code
Thanks for that. I had the correct code but it looks like I have a different problem. The alternative menu is displaying correctly but the main menu doesn’t. It must have something to do with my theme
Thanks for you input. I am experiencing the same issue.
I am having a some trouble with your instructions. I have added your code around the contents of the functions but the main menu disappeared in the process.
Would you be able to post the entire code here so I can see where I’m going wrong?
Thanks in advance