WordPress.org

Support

Support » How-To and Troubleshooting » trying to edit my main navigation but can't find it in WP

trying to edit my main navigation but can't find it in WP

  • Hello,

    I’m trying to edit my main navigation menu.

    My contact page is returning a Not Found 404.

    Here is the HTML that is displayed in the code for the navigation.

    <nav id="access" class="menu" role="navigation">
    
    <ul>
      ... page links here
      </ul>
    </nav>

    Could anybody point me in the direction of where I could find the navigation, so that I could edit it.

    Am I missing something very obvious / crucial?

    EDIT: OK, never mind on one part of that. The <nav> is in my header.php file. But for some reason my contact page won’t come up, even though it is in that Navigation code in the header. I have no idea..

Viewing 15 replies - 1 through 15 (of 25 total)
  • Menus are constructed using the menu options in WP….why are you trying to edit a file for such?

    Well, a lot of this site that I am working on was custom coded, I guess you could say.

    The navigation is coded into the header.php file.

    It’s a fairly simple site with the following links:
    Home
    Contact Us
    Services (with Dropdown menu)
    Discounts
    Blog

    For some reason the Contact Us page is not being found.

    There were templates created for the contact page, the blog, … Services Page – no template – but has some crazy SEO javascript stuff going on, and Discounts falls under the default template.

    I just can’t figure out why the contact page is not being found. Like it’s not on the server at all, but I feel like it is…

    Just to clarify what @swansonphotos said. The Appearance/Menus in admin lets you define custom menus. Once you do that you can edit the menu from there.
    /peter

    If it’s hard coded in the header.php, you will need to edit it there; yuck. To determine why the contact page isn’t found use a web development tool like Firebug or Safari’s Web Inspector to see what is being generated.

    Can you get to the page by entering its url in the browser address bar?

    /peter

    Ok, thanks Peter.

    Yeah, right now when I click on the appearance > menus
    it says the following

    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.

    It was a custom theme created for the site, and the navigation was all coded into the header. I’m just baffled why I can’t find the contact page, as it has a template, and the link seems to be fine, when I look at its URL when I view it under “Pages”

    So I don’t know… thanks for at least talking to me.. helps me generate ideas.

    Yeah when I enter its URL in the browser bar, it still says page not found.

    http://my-site/contact

    = 404 not found… darnit

    What does the link in the menu look like in the page source in the browser? What is its permalink value when you view it in ‘edit page’?

    Is the site available online for me to look at?

    /peter

    From source code…

    <li><a href="http://thesite.com/subfolder-name/contact">Contact Us</a></li>

    and then from the permalink when I view it in ‘edit page’
    http://thesite.com/subfolder-name/contact

    I have to put filler names in there, because I don’t want the client to be able to trace back to the link unfortunately.

    That looks correct, but without access to the real site it’s hard to diagnose. You’ll have to puzzle it out or contact the author.

    Good Luck/peter

    Yeah, I know. Thanks for your help Peter.

    If there was instant messaging, maybe I could send you a link to the site.

    …or email, if you feel like helping me.

    It’s like it’s not finding the template or something. That’s my only guess really.

    There should be no sub-folder name, it is either a category or a parent page. Read up on permalinks in WP and site structure.

    The only reason there is a subfolder name is because I have it on my testing site.

    I basically set up a testing version of the real site, so that I could do edits without affecting the live site.

    I have a testing site, with multiple sub folders, each corresponding to a different website… unavailable to search engines… strictly for developing.

    Not ideal… I think soon I want to just start developing locally, once I figure out how to do it.

    I’m just in a hurry with this project, and don’t have the time to learn how to do it.

    Unfortunately, you will find many cannot adjust their own schedules to dig so deep into such an issue…

    Haha. Yeah I understand. Back into the wilderness.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘trying to edit my main navigation but can't find it in WP’ is closed to new replies.
Skip to toolbar