You are here: Home » Creating Content » Practical WordPress Tip #18: Deep link to internal anchors

Practical WordPress Tip #18: Deep link to internal anchors

by Dave Doolin on November 19, 2009 · 13 comments

(Reading time: 3 – 4 minutes)

Benefit: Internal linking helps you build a tightly integrated website, more favored by search engines.

Problem: Creating highly relevant and tightly targeted internal links is time consuming, and requires a considerable amount of either planning, imagination or both.

Practical WordPress Tip: Use the anchor element <a> to select link targets internally on web pages.

This is technically easy. Here’s how:
(tip)

  1. Choose a relevant section of text within a blog post, preferably when you’re writing the post.
  2. Add an anchor element immediately before the section you want to link to in the future. Like this: <a name="mylinkname"></a>. You can also highlight the anchor text, like so: <a name="otherlinkname">anchor text here</a>.
  3. Use a hashmark # to refer back to this section from anywhere on the Web. For example, adding “#tip” to the end of the URL for this Practical WordPress Tip (http://website-in-a-weekend.net/creating-content/practical-wordpress-tip-18-deep-link-internal-anchors/#tip) let’s you jump directly to the beginning of this list.
  4. Same page linking can be achieved very easily, for example <a href="#tip">jump to tip</a>
    Hat tip Hat tip : Hat tip to Kelly Diels for
    suggesting this on-page example. Thanks Kelly!
  5. Bonus: WordPress allows to you to link directly to a specific comment. For Thesis theme, look for the small number in the upper right corner of the comment.

Why: Back in olden days, which is to say in the 1990s, tables of contents for web pages had to be constructed by hand using the anchor element to link within web pages. Nowadays, with content engines such as WordPress, very few authors link within web pages. Using this technique regularly gives you a competitive advantage.

Previous Practical WordPress Tip: Practical WordPress Tip #17: Use the tail of your Drafts queue for “notes”. Using WordPress for content management requires smart thinking. Here’s a way to keep track of your raw material, without getting in your way. You save time.

Next Practical WordPress Tip: Practical WordPress Tip #19 Link to other comments. Read how to link directly to comments to increase SERPs and support narrative threads in your blog posts. It’s easy and increases your clout as an author.


Do you have a Tip? Would you like to write a Practical WordPress Tip? Each Tip is very short, and focuses on a single action that anyone can use right away, no programming required! If you have a Tip that fits into this series, and you’d like to publish it here on Website In A Weekend, send it on!





Would you like more? Send me a letter...
"Hi Dave,
Website In A Weekend seems pretty cool. I'm serious about this WordPress and web stuff, and I'd like to keep up with it. My name is and my email address is . I'm comfortable with email newsletters. I know you will protect my privacy, and that I can unsubscribe at any time. "

{ 12 comments }

Deacon November 20, 2009 at 8:34 am

I think this one could be fleshed out into a longer article.
Deacon´s last blog ..Your 1 Most Important Activity My ComLuv Profile

Dr Wordpress! November 20, 2009 at 8:43 am

@Deacon – Tip #19 would be part of that article.
Dr Wordpress!´s last blog ..DIY WordPress: 3 Reasons You Should Learn To Code My ComLuv Profile

Extreme John November 20, 2009 at 10:00 am

Awesome deep linking tip for Wordpress Dave, short sweet and right to the tip. Teaching deep linking is one of my favorite things to do amongst my friends that also operate blogs.
Extreme John´s last blog ..9 Blogs I Found on Blog Engage My ComLuv Profile

Dr Wordpress! November 20, 2009 at 12:24 pm

@EJ – You can do some really cool contextual writing with deep linking. I use it to communicate subtext as well.
Dr Wordpress!´s last blog ..DIY WordPress: 3 Reasons You Should Learn To Code My ComLuv Profile

Michelle Mangen December 6, 2009 at 2:03 pm

I’m going to have to wait for Tip #19 as I’m confused :-(

Ah, so much to learn and implement!
Michelle Mangen´s last blog ..20 #WordPress Plugins I would die without! My ComLuv Profile

Dr Wordpress! December 6, 2009 at 2:11 pm

@Michelle – This will end up on a screencast at some point.

#19 should be easier, it’s more deep linking, but with specific examples.
Dr Wordpress!´s last blog ..Holiday Season Kicks Off – 2 Weeks in Review! My ComLuv Profile

Michelle Mangen December 6, 2009 at 2:18 pm

Yeah! Let me know when the screencasts and done.
Michelle Mangen´s last blog ..20 #WordPress Plugins I would die without! My ComLuv Profile

Dr Wordpress! January 28, 2010 at 9:18 am

The screencasts are finished. More news in Feb.
Dr Wordpress!´s last blog ..Practical WordPress Tip #19 Link to other comments My ComLuv Profile

Carlos Velez January 28, 2010 at 7:12 am

your blog entries are like peanut butter M&M’s…I can’t have just one. must have a handful at a time.

Dr Wordpress! January 28, 2010 at 9:20 am

That’s my evil plan. It’s only going to get worse as I continue to revise and add internal hyperlinks. For example, I may refer to this comment in the future as an example of my evil plan in action.

CommentLuv is so cool, because I can bounce readers right back into the mainstream of entries with an intriguing blog post title.
Dr Wordpress!´s last blog ..Saturday Morning Surfing – Oversharing is *not* intimacy My ComLuv Profile

Kelly Diels April 3, 2010 at 12:07 pm

Dave! I did it! I made this work!

(abuse of exclamation points justified by magnitude of this accomplishment!)

Here’s what the links to the anchors look like:

How Good of A Writer Do I Need to Be to Guest Post?
How Do I Figure out to Which Blog(s) I Should Offer a Guest Post?

Here’s what the anchors look like:


I’m positively giddy.

I am now off to abuse my new-found super blog power with deep linking to specific paragraphs rather than referencing long unwieldy pieces and hoping the reader gets the point.

Dave Doolin April 3, 2010 at 12:10 pm

You’re so smart!

More deep doo coming. The UK Battalion is has decided they need to get on some markup, where you’re going next.

I just went critical mass. Just now. This is it.

Comments on this entry are closed.

{ 1 trackback }

Previous post:

Next post: