Support » Fixing WordPress » WordPress 3.0 Menu Plugin
4 years, 7 months ago
I’m new to wordpress and I need your help to create a simple plugin.
So I want to build a plugin that will replace the menu of a theme and use the one that I’ve build, but I want to be able to add the menu links using the “Menus” option from “Appearance” tab.
I only need you to provide me the function to replace the theme’s menu and set the id and class of my menu and only show the links that are added to the “Menus” page.
I thinks that I need to use the “wp_nav_menu” but I don’t know how to replace the current theme menu and load mine with the class and id in order to style it.
I hope that someone can help me, thank you.
Thanks @esmi. But That part I already know 🙂
I’ve searched a bit and I thinks is easy to check if the theme is using the wp_nav_menu() and if is true remove the classes and ids and add my own.
Can somebody show me how can I do that?
[ Please do not bump, it’s not permitted here. ]