Support » Fixing WordPress » Header Navigation Menu

  • I recently was appointed to maintain a site since the web-developer was let go. I am trying to simply add some pages and sub pages to this site
    http://tintedadvertisinggraphics.com/
    I thought it would be as simple as going to the WordPress back end and add some pages and sub pages, however, my luck proved other wise. Under appearance > menus it said the theme does not natively support menus. So I went and looked for a php code to insert into the functions.php of the theme, and now in the appearances > menus window a new tab that says manage locations appears. I thought that I would simply add a new menu and it would show up but that’s not the case.
    So PLEASE HELP! This is my first encounter with php and theme was hard coded by that web developer so I would like to know either:
    How I would go about editing the menu through the code AND/OR how to disable the custom menu he did and just enable the WordPress one if possible. PLEASE any help will be much appreciated.

Viewing 12 replies - 1 through 12 (of 12 total)
  • esmi

    (@esmi)

    Forum Moderator

    Try reviewing Navigation_Menus.

    Thank you for responding. I did place this piece of php:

    function register_my_menu() {
    register_nav_menu(‘header-menu’,__( ‘Header Menu’ ));
    }
    add_action( ‘init’, ‘register_my_menu’ );

    to the functions.php file in the theme so that it could register the menu and this one:

    <?php wp_nav_menu( array( ‘theme_location’ => ‘header-menu’ ) ); ?>

    to the header.php file. However, I think I might have done it wrong. This might be a silly question, but how do I know what the name of the menu is? Or is it something you just name to keep track of it?

    esmi

    (@esmi)

    Forum Moderator

    Did you try reading the page at the link I posted above?

    I did read it and I’m trying my best to understand it but honestly, I don’t.

    esmi

    (@esmi)

    Forum Moderator

    Which part are you having a problem with?

    From what I understand, to register a single menu I need to use this:
    <?php register_nav_menu( $location, $description ); ?>
    However, I don’t know where to place it (my guess is functions.php) or how to know what the location and the description are for the menu that the web developer created in the theme I am using. Or is this supposed to allow me to create one from WordPress?

    esmi

    (@esmi)

    Forum Moderator

    Who developed this theme?

    Theme Name: TAG
    Theme URI: http://www.tintedadvertisinggraphics.com
    Description: A custom theme developed for Tinted Advertsing Graphics, in Houston TX.
    Version: 1.0
    Author: Rodrigo Del Castillo
    Author URI: http://www.r3phlex.com
    Tags: custom, clean, corporate

    esmi

    (@esmi)

    Forum Moderator

    Can you not contact them about these issues?

    I cannot. I believe the company parted ways with him and he has since disappeared.

    esmi

    (@esmi)

    Forum Moderator

    I’m sorry but there is a limit to the help we can offer for custom themes as we have no idea how they were constructed. I can only suggest that you try hiring someone to look into this for you if you’re finding it too overwhelming..

    Thank you

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Header Navigation Menu’ is closed to new replies.