ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

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

Updated on December 9, 2014

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.


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
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:

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:


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


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.


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?

See results

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


This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

Show Details
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)