Support » Fixing WordPress » link to other webpage from navbar in wp

  • Resolved briankrogs


    My blog is part of a website that is not within WP. I’m trying to put in a link in the menu bar to go back to the original website. I tried to hard code it into my header section where the menu code is, but it puts it at the end.

    example: url says “” when I want it to say “” after I press “HOME” button in my navbar from the blog to go to my original site.

    Does anyone know how to do this? I’m sure I’m being an idiot.


Viewing 3 replies - 1 through 3 (of 3 total)
  • designsimply



    Depending on how your theme is setup, you should be able to hard code a link to the header by editing the header.php file (could be another file for your theme) using Design > Theme Editor from the admin section.

    It is quite difficult to give advice about this without seeing the page you are referring to or seeing the code you are using to create the Home button and the menu bar.

    If you are using the wp_list_pages() function to create your menu bar, you may need to exclude the home page that points to before you hard code your home link in.

    If the Home button is just link html, it should be pretty easy to change and it’s just a matter of finding the right link to update in your code.

    Note: You should ALWAYS make a backup before editing theme code.

    thanks, i got it fixed. i don’t know what i was smoking, but i could hard code it. i guess i just didn’t type the address correctly to start with.

    I have the same requirement as BRIANKROGS, except I am a php neophyte.
    I have the website:
    Wordpress is at:
    I would like the ‘Home’ link to go back to our main page.
    What can I do to hard-code that link without breaking the existing code?


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘link to other webpage from navbar in wp’ is closed to new replies.