WordPress.org

Forums

Header Navigation Menu (13 posts)

  1. sandygraph
    Member
    Posted 1 year ago #

    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.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try reviewing Navigation_Menus.

  3. sandygraph
    Member
    Posted 1 year ago #

    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?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

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

  5. sandygraph
    Member
    Posted 1 year ago #

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

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Which part are you having a problem with?

  7. sandygraph
    Member
    Posted 1 year ago #

    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?

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Who developed this theme?

  9. sandygraph
    Member
    Posted 1 year ago #

    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

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Can you not contact them about these issues?

  11. sandygraph
    Member
    Posted 1 year ago #

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

  12. esmi
    Forum Moderator
    Posted 1 year ago #

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

  13. sandygraph
    Member
    Posted 1 year ago #

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic