WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 3.0+ Menu Plugin (4 posts)

  1. vtimbuc
    Member
    Posted 2 years ago #

    Hey guys,

    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.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. vtimbuc
    Member
    Posted 2 years ago #

    Thanks @esmi. But That part I already know :)

  4. vtimbuc
    Member
    Posted 2 years ago #

    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?

    Thanks

    [ Please do not bump, it's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic