How to Create a Back to Top Link in a Hubpage Article

Introduction to Internal Links

In HTML, there’s an easy way to create internal links within a page using the “a name” tag, but just how do you create internal links within a hubpage so you can jump to the top of an article, or jump down to specific sections?

Since HTML is limited within hubpages, I started experimenting with how to do this. Then I saw examples of what I wanted to do in other hubs, such as the awesome SEO hub written by Writer Fox called WHAT IS SEO? | SEO Tips and Tutorial 2014. In this hub, Writer Fox created a table of contents at the top of the hub so you can easily jump to specific sections of the hub.

This comes in quite handy when the hub is lengthy and you need to return to certain areas of the hubpage to review information.

However, I also wanted a way to create Return to Top, or Back to Top links, which I sometimes create on lengthy HTML webpages.

I reviewed the forum called ”HELP! How do you create a link within a Hub?” created by TDowling, which also contained helpful notes by Writer Fox and other hubbers (thank you!).

In the Hubpages Learning Center, one of the elements listed for a stellar hub is attractive, easy-to-skip around formatting. To be able to navigate and skip around a hub, you need a way to jump to the top of a hub, or link to different areas of a hub.

Source

Even though I am familiar with HTML, I was still a bit confused by the postings of how to setup internal links in a hub, without HTML.

They say that just reading something isn't enough, and hands-on practice is the best way to learn something, so I figured I would give it a try myself.

What’s that saying by Confucius?

How to View Source Code to Obtain the Unique Identifier

Let’s get started!

Here’s step-by-step instructions on how to setup an internal <Back to Top> or <Return to Top> link within a hubpage article.

Hubpages My Account
Hubpages My Account | Source

First, select the hub to be edited.

While you are logged in to Hubpages, hover over your Hubpages user name.

From the drop-down menu, click My Account.

Copy Link Location
Copy Link Location | Source

In this example, I’m using one of my lengthier hubs, Instant WordPress vs WordPress.

Before clicking on Edit and proceeding to the hubpage, right click on the hub title and select Copy Link Location (you will need this URL shortly).

Edit Your Hubpage
Edit Your Hubpage | Source

Next, click on the desired hubpage title to proceed.

Again, in this example, I'm using the hub entitled, Instant WordPress vs WordPress.

You can also click the Edit button.

The hubpage is then displayed. First, decide where the “Return to Top” link should return to when clicked. In this case, I want to setup a link at the bottom of the hub which takes the reader back to the top of the hubpage, so I need to right click on the top text capsule entitled “Introduction" to view the HTML code for that capsule.

Then select View Page Source, as shown in the graphic below:

View Page Source
View Page Source | Source

The source code for the page then displayed. To view the source code for the particular capsule, press CTRL+F to search and then enter the name of the capsule. In my example, I searched for the title of my capsule, Introduction, which you can see highlighted on the right side of the source code.

On the left, notice there is a unique identifier for the capsule, which is 36932937. This is the code to reference this particular section (or capsule) of the hubpage:

View Source Code
View Source Code | Source
Source
Edit Specific Capsule
Edit Specific Capsule | Source

Adding an Internal Link

Next, close the source code window and return back to the hubpage.

At the top of the hubpage, click the Edit button to proceed to edit mode for the hub.

Scroll down to the location of where you would like to add a new link, and select Edit again, to edit the particular capsule.

In my case, I want the internal link to be located towards the bottom of my hub, so I scroll down to the bottom text capsule.

Next, while in edit mode (editing the text capsule), type the text for the new link. In this example, I want my link to look like this:

<Click here to go to the top of the article>

…so that’s what I typed in the text capsule:

Create Internal Link
Create Internal Link | Source

Next, highlight the text and then click the link icon:

Create Internal Link
Create Internal Link | Source

In the URL box, you will need the link location that you copied earlier. Click CTRL+V to paste the link location to this field.

Then, directly after the URL, type: #mod_36932937 (replacing the number at the end with the unique identifier for your example). The URL in this case for my link looks like this:

http://easylearningweb.hubpages.com/hub/Instant-WordPress-vs-WordPress#mod_36932937

Once you have the URL entered in the URL field, click Save:

Create Internal Link
Create Internal Link | Source

Back on the text capsule dialog box, click Save once again:

Source

You’re almost finished! Scroll to the top of your hubpage and click Done Editing:

Source

The Completed Internal Link

The graphic below shows the completed internal link. In this example, when someone clicks on the <Click here to go to the top of the article> link, it returns to the top of the hubpage.

Voila!

Completed Internal Link
Completed Internal Link | Source

How to View the HTML for Internal Links

By using these instructions, no HTML code writing is needed. However, if you would like to see the newly generated HTML code, you can click on HTML when editing the text capsule to view the code as follows:

View/Edit HTML
View/Edit HTML | Source

Creating Internal Links

Have You Created Internal Links Within Your Hubs?

  • Yes, and I used similar steps as shown here
  • Yes, but I used different steps (please note what steps you used in comments area below)
  • No, I have never setup internal links, but I would like to
  • No, I don't have a need for internal links
See results without voting

Note: This is Hub #4 of 30 of my 30 Hubs in 30 Days Challenge.

More by this Author


8 comments

billybuc profile image

billybuc 24 months ago from Olympia, WA

Good information and an excellent job of explaining it all.


easylearningweb profile image

easylearningweb 24 months ago Author

Thanks, billybuc, glad you like the hub and find it helpful! I'm on hubpage writing roll on day 4 of my 30 day challenge, only 26 more hubs to go! Yeah!


Elsie Hagley profile image

Elsie Hagley 24 months ago from New Zealand

Excellent article, you have done a great job explaining it.

I'm like confucius"I need to do it to understand".

I'm not needing this yet, have book marked it to return when I do.

All the best for your challenge, you are taking on a big job doing something like this at christmas, which would be very stimulating to you if you succeed, I have no doubt that you will though.


easylearningweb profile image

easylearningweb 24 months ago Author

Thanks, Elsie, glad you like the hub, and thanks for your wishes for my success in my challenge. I know this is an odd time of year to take it on, but so far so good, and its keeping me busy and motivated. Thanks!


peachpurple profile image

peachpurple 24 months ago from Home Sweet Home

wow, looks kind of complicated, I must print it out first


easylearningweb profile image

easylearningweb 24 months ago Author

It's actually not too bad. I just tend to write a lot of detail. It's handy for very lengthy hubs if you need some internal links. Once you look up the unique identifier number it's a piece of cake. You just have to get the syntax down correctly but once you do one, others should be fairly easy to set up.


SAQIB6608 profile image

SAQIB6608 24 months ago from HYDERABAD PAKISTAN

wonderful tips of hyperlinking !! Great and easily expalined easylearningweb !!!

REGARDS

SAQIB


easylearningweb profile image

easylearningweb 24 months ago Author

Thanks SAQIB, glad you liked the hub and found it helpful!

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working