Sorry i'm pretty new on wp, i would like to add new menu links and site pages, to the main top menu bar.

I'm using a third parties template, and i see the top.php file which contains the top menu looks like:

<div id='mainmenu-container'>
      <div id='mainmenu'>
        <?php $nav_menu_params=array(
          'menu_class'=>'menus menu-primary',
        wp_nav_menu($nav_menu_params); ?>

how does i edit this code or how can i enter anyway new links and new web site pages from backend side?

thanks for help

1 Answer 1


Templates can all have unique code, and your template may or may not support Custom Menus. I would find out if you can add custom menus through your Appearance > Menus tab in the admin area. If you can't, all new pages you add from the Pages tab will most likely end up in that main menu by default.

If you can add custom menus, then you should look up the function you are referencing here to get a good understanding of how to place your code.

Also check to see if you have the option to set the menu which will be your main menu in the Menus tab.

  • 1
    Right. Being new to WP, you will learn a lot about your theme. Some theme designers only add 1 menu. You can add your own extra menus but you'll need to follow instructions from someone telling you how to do it. It is sad when themes come with only 1 menu when the user needs more but the beauty of it all is you can add as many as you like if you know how.
    – Androliyah
    Dec 22, 2012 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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