WordPress.org

Ready to get started?Download WordPress

Forums

Help Can't add menu! =( (9 posts)

  1. steamy22
    Member
    Posted 1 year ago #

    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

    Header
    http://pastebin.com/TVxGW1u9
    functions
    http://pastebin.com/PrTrQ6wZ
    style.ie6.css
    http://pastebin.com/fMgvbcWU

    Thanks so much for looking into this issue!

  2. zex2911
    Member
    Posted 1 year ago #

    add this to your functions.php

    //Register area for custom menu
    function register_my_menus() {
    	register_nav_menus(
    		array(
    			'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.

  3. steamy22
    Member
    Posted 1 year ago #

    it did not work....

    I exchanged

    <?php art_menu_items(); ?>

    to

    <?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() {
    register_nav_menus(
    array(
    '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
    /wp-admin/nav-menus.php
    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...

  4. steamy22
    Member
    Posted 1 year ago #

    Found a another somewhat solution....

    changing
    <?php art_menu_items(); ?>

    to

    <li><a href="http://searchbyssn.org/">Home</a></li>
    <li><a href="http://searchbyssn.org/about/">About</a></li>
    <li><a href="http://searchbyssn.org/terms-of-service/">Terms Of Service</a></li>
    <li><a href="http://searchbyssn.org/privacy">Privacy</a></li>
    <li><a href="http://searchbyssn.org/contact/">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....)

  5. zex2911
    Member
    Posted 1 year ago #

    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....

  6. steamy22
    Member
    Posted 1 year ago #

    splitzgames.com

    if you can assist over http://www.teamviewer.com my msn is yadaayada86@live.se to exchange TW info.

  7. zex2911
    Member
    Posted 1 year ago #

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

  8. steamy22
    Member
    Posted 1 year ago #

    this was the solution:

    http://wordpress.org/extend/plugins/exclude-pages

    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.

  9. zex2911
    Member
    Posted 1 year ago #

    Cool, glad you did it. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.