WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a wordpress site and there is a navigation bar with menu and submenu.

I want to remove link attribute from menu items that have sub menu.

Is it possible? because i couldn't achieve to this by this function : wp_list_page().

share|improve this question
I think you are looking for this: wordpress.stackexchange.com/a/100014/21376 – s_ha_dum Jun 8 '13 at 13:17
up vote 0 down vote accepted

Use Page Links To plugin by Mark Jaquith. Edit top level page and in section Page Links To select An alternate URL and enter # as an URL.

share|improve this answer
Thanks, It works very well! – Milad Sobhkhiz Jun 8 '13 at 16:52

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.