Please take a look at below image.

enter image description here

Here we can see URL, Navigation Label & Title Attribute under Menu Structure >> Home. I need there a more option called "Data Description".

I have a task to write menu code like below with wordpress.

<a href="[URL]" data-description="[Data Description]">[Navigation Label]</a>

Is there any option to display my menu dynamically like this? Also It should support "current-menu-item" class on current page.

I'm a wordpress theme developer & also have some knowledge of plugins development, If there are any way please suggest me.

  • Have you researched and tried anything so far? If so you should show what you got to give others a better starting point to help you.
    – Nicolai
    Aug 30 '14 at 20:31
  • Actually, have knowledge & also used in my too many themes for simple menu link like <a href="[URL]">[Navigation Label]</a> but today I wanted there data-description="[Data Description]" & want know the solution for this task.
    – Ankur
    Aug 31 '14 at 5:09

This link helps me to solve my problem. : http://wordpress.org/support/topic/how-to-show-the-description-of-the-menu

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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