Support » Themes and Templates » Help Can't add menu! =(

  • Working on customizing a template a bit, but I can’t add a top menu.
    (you know the horizontal on at the top (not sidebar))

    I tried few things, but the solutions never worked ;<
    hope you guys can help me! so I can have my pretty menu ^^

    I understood the changes must be done in header and functions from google.
    but just for the sake of it im posting the css as well to be sure im not missing anything.!
    maybe I can take out code from it that is no longer needed. =o


    Thanks so much for looking into this issue!

Viewing 8 replies - 1 through 8 (of 8 total)
  • add this to your functions.php

    //Register area for custom menu
    function register_my_menus() {
    			'primary-menu' => __( 'Primary Menu' ),
    			'secondary-menu' => __( 'Secondary Menu' ),
    			'tertiary-menu' => __( 'Tertiary Menu' )

    than call it in your header where you want your menu to appear with
    <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'menu_class' => 'nav', 'theme_location' => 'primary-menu' ) ); ?>
    and style .nav how ever you want.

    it did not work….

    I exchanged

    <?php art_menu_items(); ?>


    <?php wp_nav_menu( array( ‘sort_column’ => ‘menu_order’, ‘menu_class’ => ‘nav’, ‘theme_location’ => ‘primary-menu’ ) ); ?>

    in header

    And in functions, I just pressed enter and added the code u gave me.

    //Register area for custom menu
    function register_my_menus() {
    ‘primary-menu’ => __( ‘Primary Menu’ ),
    ‘secondary-menu’ => __( ‘Secondary Menu’ ),
    ‘tertiary-menu’ => __( ‘Tertiary Menu’ )

    taking away <?php art_menu_items(); ?> took away the themes menu, but in
    it still shows the text:

    The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.

    And the menu would not appear that i saved in there.

    hmmm :/ thanks for the effort tho, I might just be slow…

    Found a another somewhat solution….

    <?php art_menu_items(); ?>


    <li><a href="">Home</a></li>
    <li><a href="">About</a></li>
    <li><a href="">Terms Of Service</a></li>
    <li><a href="">Privacy</a></li>
    <li><a href="">Contact</a></li>

    worked’s, but the links are not styled as they are supposed to be, as when they are in “<?php art_menu_items(); ?>”
    can that be fixed?

    (might be easier… to find an solution for that….)

    link to your site?
    If you added the code to functions.php it should add menus tab under appearance, and then you should be able to add pages you want to it.
    But maybe it’s a theme issue….

    if you can assist over my msn is to exchange TW info.

    don’t have msn, my skype name is the same as here

    this was the solution:

    it creates a tick box on left right side under the page attributes that you can check or uncheck to exlude the pages from the standard wordpress page listings.

    Cool, glad you did it. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Help Can't add menu! =(’ is closed to new replies.