• Home
  • About Mitch
  • Speaking
  • Articles
  • Contact
  • Home
  • About Mitch
  • Speaking
  • Articles
  • Contact

Digital Strategist

WordPress Developer

Content Creator

Unapologetic Punk

Mitch Canter

  • X
  • Bluesky
  • GitHub
  • Twitch
  • YouTube
  • LinkedIn
WordPress

Using Hyperlinks Correctly in WordPress

CMDR Mitchcraft

Reading time: 2 minutes

Any good content marketer worth his or her salt knows the value of using links in their content. It’s a good strategy to practice – whether you’re linking internally to content you’ve written in the past or to external resources you mention in posts.  However, a lot of people overlook a small, single detail that could mean the difference between someone staying on their website or leaving.

https://www.youtube.com/watch?v=xR7ChbDndHI

External Link Targeting

The rule is simple: if you are taking someone off-site (whether it’s a completely new domain or even a sub-domain of your current site), you want to make sure the link opens in a new tab or window. In WordPress, that’s as easy as checking a box as you’re inserting the hyperlink. Just in case you want the entire process:

  • Type the text you want to link.
  • Highlight it and click on the hyperlink button in the WordPress editor bar (it looks like a chain link).

  • Fill out the URL. The Link Text should be filled out for you already
  • Check the box that says “Open link in a new window/tab”.

That’s it. When you click on the hyperlink in the content, it’ll take you to a new window or tab and will leave your content open in the previous location.

Internal Link Targeting

You want to make sure that people visiting an internal link (a link that shares a domain with your website url) don’t visit a new window or tab. It’s assumed that any links that are in the same domain are on the same site and shouldn’t confuse users. One exception: if you host multiple websites in sub-folders, and want to link from one site to another, use a new tab or window.

As a bonus, if the content you want to link to is a WordPress content piece (page, post, category, or custom content / taxonomy), you can click the “Or link to existing content” drop down and see options to easily link to existing content.

  • BlogInfo – One Tag with a Whole Lot of Awesomeness

    BlogInfo – One Tag with a Whole Lot of Awesomeness

    Reading time: 1 minute

    One of the most versitile tags in my arsenal that WordPress gives me is a fun little tag called <?php bloginfo(); ?>.  By itself, it’s not much fun, but when you add in a variable, it can tell you anything you need to know about your blog.  Like what, you ask? name description admin_email url…

    WordPress
  • Better Know a WordPress Tag: ‘siteurl’

    Better Know a WordPress Tag: ‘siteurl’

    Reading time: 1 minute

    When you’re working on a development site it’s hard to set things up correctly because you know you’re going to change the site, and putting in elements that are more than likely “stationary”, such as links, will have to be changed, and that causes un-necessary headache when it comes time to move the site live. …

    WordPress