Author MarionBlack
2014
2
Premium
Rank 45533
Unfollow

In this video you’re going to learn how to create a link which jumps to a different section of the same page.

The post I’m using for the demo contains instructions for a fairly long sequence of steps. I expect my readers to leave the page while they follow each step and then come back to get the next step.

This will make it easy for them to locate the next step they need to follow without wading through all the steps they’ve already done.

Frequently Asked Questions

If you were setting up a FAQ - frequently asked questions page then this method of linking is great.

You’d put all the questions at the top and link them to the answers underneath.

Let’s do it!

You’ll need a target and a link [DUH!]

The target is where your visitor ends up when they click the link. This is most useful for a long post where you want to put in a list of the subheadings at the top so your reader can go from the top of the page to the actual content they’re interested in reading about.

Sort of a mini-menu.

The code for the target (anchor) is

<a name="unique-name"></a>

The code for the link is

<a href="#unique-name"></a>

But we're going to use WordPress's built in link creator to make the linking easier.

The unique-name is the name you assign to the jump link target. Both the link and the target must have the same unique-name. And, of course, you must use a new unique-name for each target. Make it short and relevant so you can remember which name you've given to each target.

Because it’s code you can’t have any spaces in the unique-name. If you need more than one word you can use a hyphen. A short unique-name is better because you’re less likely to type it in wrong when you’re setting it up.

I’m linking to subheadings so for the unique-name I’ll use a word that forms part of that subheading.

You can use any name you like because no-one but you is going to see it.

Code and HTML are 4 Letter Words, Don't Panic!

It's only a little bit of code.

We're going to switch to the Text tab because we're using code.

Mostly you'll want to link to a subheading so you place the target code into the line above the subheading.

Your subheadings and heading will be easy to find because of the H2 or H3 tags. If you have any difficulty locating them use Ctrl+f to open the search box.

Click into the text before your subheading and insert a space above it by hitting the enter key. Type in choosing part of the subheading as the unique name. Make absolutely sure that you type in the code correctly. Spaces and symbols are important.

The hashtag (#) tells the link to jump to the text indicated in the unique-name.

Anchor Example

<a name="export"></a>

Link Example

<a href="#export"></a>

First set up the Anchors (where you're going to link to) then go to the top of the page and add the links.

You add the links the same way you usually link to posts, pages or URLs but you just type in #unique-name. e.g. #export

Save the Draft, Preview and check every link individually. When you know it's working as it should finish your post and publish.

You'll be able to see tiny little anchor icons when you're in edit mode.

More of my training

My Training Sorted

As always, I'm here to help you,

Please share the love, click 'Like This' (if you do). Ask a question, share something or leave a comment.

Join the Discussion
Write something…
Recent messages
AriefWibowo Premium
Hi Marion,

Thanks for this training. I've been wondering about this for a while then you gave this training. Amazing.

One question:
Can the #unique-name be use over and over... or it will be specific to that post's #unique-name?

I mean if I have post A with #unique-name1 then I write post B with the same #unique-name1..... Where will the link in Post B's #unique-name1 point to? Post A or Post B?
Reply
MarionBlack Premium
The hash tag (#) in the link means the target is on the same page so even if you use the same name on more than one page it will only link to the target on the same page as the link. I'll cover linking to a particular place on a different page in another tutorial.
Reply
AriefWibowo Premium
Thank you. I understand now. Looking forward to your other tutorial!
Reply
weemrst Premium
Hi Marion and many thanks for this step-by-step training. Those of us who are still learning daily will benefit enormously from this.
I am still amazed at the level of help and encouragement shown to newcomers by experienced members. I have never known anything like it.
Thank you so much and take care
Lynn
Reply
MarionBlack Premium
Thank you Lynne. I'm still learning something new every day and I love to share what I learn with my WA friends.
Reply
bjdluna Premium Plus
Hi Marion,

Another really great training! Also very timely for me as I need to add a bunch of internal links on my current site. The hash tag thing is totally new to me. I have never heard of that before or if I did it didn't sink in.

Thanks again Marion, this was great as are all your tutorials!
Barbara
Reply
MarionBlack Premium
Thank you Barbara. I use the hash tag in my menus too.
Reply
bjdluna Premium Plus
Thank you for this additional link training too!

Barbara
Reply
Tezsie Premium
Hi, Marion. I immediately bookmarked this for when I get to the jump links. Thanks for sharing. I love how you explain things in your videos and text, making it easy to follow and execute even for non-techies like me.
And good to see you again after my month long absence. Hope all is well with you and your loved ones!
Reply
MarionBlack Premium
You're welcome Tezsie.
Reply
Helen123 Premium
I use this a lot Marion on my website, as I have products that I promote, that are all located on the same page for easy comparison for my readers and I use this so I can create an index at the top of the page of all the products that are reviewed so the reader can jump directly to the one product that the are interested in rather than having to scroll through everything. It works a treat !
Reply
MarionBlack Premium
That's a great idea Helen. Thanks for sharing.
Reply
Top