Dynamic menu in wordpress


Topic: Dynamic menu in wordpress

bas2255 pro asked 6 years ago

I have been able to follow your wordpress tutorial, thank you for that. I only now have a question regarding to the menu section. Here you have created a static menu, but I would like to have it dynamic, so when I add page's that thay are showt in the menu. I can do that with <? php wp_nav_menu (); ?> but if I want to have a dropdown menu there is no dropdown menu. The pages will displayed  among each other like "ul li". I do not know how to realize this to a dropdown button, can you explain this to me / advise me?

nicobel pro premium priority answered 3 years ago

Hello, any information on this? I am creating a WP theme with MDBootstrap but the class MDB uses are different than those WP is using, resulting in an unstyled menu when wanting to create a dynamic menu within WP. Should this be implemented using a walker? Is there any link on how to create a dynamic WP menu with MDBootstrap?

Thank you!


Marcin Luczak staff commented 3 years ago

Hi,

Using a nav walker would be a good idea here, but as this implementation is more related to the WordPress itself rather than MDB components, we cannot provide you with any ready-to-use solution or a tutorial.

Keep coding, Marcin


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.8
  • Device: Computer
  • Browser: Chrome
  • OS: W10
  • Provided sample code: No
  • Provided link: No