Title: Adding external link
Last modified: August 19, 2016

---

# Adding external link

 *  [Evong](https://wordpress.org/support/users/evong/)
 * (@evong)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/)
 * I have just installed WordPress and it’s working. I need to add a link/button
   that reads “Home” which will direct users to my main website. Can someone help
   please?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Justin Tadlock](https://wordpress.org/support/users/greenshady/)
 * (@greenshady)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/#post-731777)
 *     ```
       <a href="link-to-your-home-page" title="Home">Home</a>
       ```
   
 *  [MouseClicks](https://wordpress.org/support/users/mouseclicks/)
 * (@mouseclicks)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/#post-732046)
 * Can you hard code it into the footer? That’s what I did anyway. I also always
   use target=”_blank” in all external urls so that the page opens in a new browser
   window leaving the previous site open for returning to easily.
 * Deb
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/#post-732085)
 * It’s considered bad form to force a browser to open a new window. Let the site
   visitor decide that.
 * To Evong, I may be stating the obvious, but just put your complete URI in the
   anchor tag, like this:
 * `<a href="http://www.evong.com">Home</a>`
 * and you’ll be just fine. 🙂
 *  [darkpress](https://wordpress.org/support/users/darkpress/)
 * (@darkpress)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/#post-732086)
 * “Bad form”? I would think it’s more of a personal preference, than any hard and
   fast rule.
 * And the site visitor can decide whether to stay or go..the rest of it is up to
   the webmaster.
 * Just my 2 pennies..not trying to argue.
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/#post-732093)
 * It does go to accessibility issues for those folks browsing with screen readers.
   They cannot effectively use the “back” button if there’s a new browser window
   opened AUTOMATICALLY. If a site is worth visiting, the person will hit the “back”
   button. Don’t remove that choice for them.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/adding-external-link/#post-732094)
 * _“Bad form”? I would think it’s more of a personal preference…_
 * Yes, but it would be **my** personal preference, as a visitor, not yours! A webmaster
   should NOT decide how MY browser should work. That’s the basic rule.
    With my
   browser settings I will override anyway all your “smart” target things, so it
   will open as I want it. And I can right-click if I want it in a separate tab/
   window.
 *  [xtra](https://wordpress.org/support/users/babypress/)
 * (@babypress)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/adding-external-link/#post-732194)
 * Hi there I am having a similar problem I have
    `<a href="www.external-website.
   html" target="_blank">Another website</a>`
 * in the footer but when click the link it places the WP website url before the
   external link? eg
 * `www.WPsite/www.external-website.html`
 * Any suggestions to what I may need to do? i would of thought it to be easy but
   I must be missing something. I will keep searching the net too
 *  [xtra](https://wordpress.org/support/users/babypress/)
 * (@babypress)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/adding-external-link/#post-732195)
 * A little embarrassing but the problem was I did not have http:// before the URL
   😛
 * Code needs to be written like this:
 * `<a href="http://www.external-website.html" target="_blank"></a>`
 *  [marclemar](https://wordpress.org/support/users/marclemar/)
 * (@marclemar)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/adding-external-link/#post-732208)
 * I have a photography orientated site with services listings in categorised directories
   so it’s necessary for me to have new windows open as then people can browse various
   photographers or services listed with me without having to backtrack to my site
   to find another if the one they have clicked on is not for them.
 * I know WordPress is set to open all links in comments etc to open in the same
   browser window, so in my directories where possible I always include Target=”
   _blank” in the web links of each service listed and at first all seemed fine,
   my links were opening in a new window.
 * I haven’t changed anything but now these same links only open in the same window
   and as mentioned above it’s a bit of a pain for my visitors to backtrack each
   time on a search especially with some sites not allowing visitors to go back 
   to the previous site that they clicked through from.
 * Is there a script I can add in my theme editor that will set all external links
   from my site to open in a new window ? and if not does anyone know why my Target
   =”_blank” is suddenly not operating properly ?
    Any assistance on this would 
   be appreciated .
 * Cheers
 * Mark

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Adding external link’ is closed to new replies.

## Tags

 * [`backticks`](https://wordpress.org/support/topic-tag/backticks/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 8 participants
 * Last reply from: [marclemar](https://wordpress.org/support/users/marclemar/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/adding-external-link/#post-732208)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
