Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My issue is that I have a horizontal menu, with a few hashed - '#' - custom menu links to prevent users from going to empty pages (the main categories were just made pages for the link structure).

Now the issue further is that in my attempt to create a select dropdown menu for mobile, I am using logic to see if a nav item is a child to another nav item, but my custom nav items are not being registered as parents.

Is there a work around to this?

To be specific: I need to find out which nav items are children and add dashes to them for a better user experience:

- child
-- 2 child

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.