When most people think of links, they think of connecting two different web-pages together. You use hyperlinks to connect two of your blog posts, or a blog post and a landing page, or a blog post and a product page, or a tweet to your website.
But that's not all hyperlinks can do. With a little tweaking, you also can set up hyperlinks to link to content on the same page. Now, when you refer to something you said elsewhere in that article, you can actually link to it -- making it much easier for your audience to figure out what the heck you're talking about.
Click here to get how to add JQuery in Blogger and Blogspot
Want to see what I mean? Just click here.
Pretty cool, huh? The best part about it all is that it's super easy to do yourself, even if you don't have extensive HTML knowledge. If the HTML-speak feels confusing, just follow along with the real-world examples below.
Note: If you are a Blogging Dunia customer, follow these instructions.
1) Give the object or text you'd like to link to a name.
In a normal linking scenario, the thing you need to link to has a URL of its own. But in this scenario, the page you want to link to and the page the link is on is one and the same -- so you've got to make up a name with # for the link's destination.
I'd recommend using word or phrase that describes the link's destination. If you use a phrase, there should be no spaces -- use underscores instead.
Example
Let's say we wanted to link to an example JUMP LINK in a post. Here's what I'd use as my object's name:
jump-link
Now, onto the next step.
2) Take the name you've chosen and insert it into an opening HTML anchor link tag.
Translation: Replace the red section of the tag below with the name you chose in the previous step:
<span id="INSERT_YOUR_OBJECT_NAME_HERE"></span>
Example
<span id="jump-link"></span>
3) Place that complete opening <span> tag from above before the text or object you want to link to, and add a closing </span> tag after.
Doing this sets the location of link. This is what your code should look like now:
<span id="INSERT_YOUR_OBJECT_NAME_HERE">The object you want to link to.</span>
Example
<span id="jump-link">This is the Jump Link example I want to link to.</span>
4) Create the hyperlink that'll take you to that text or object.
Now, go to the part of the post you'd like to have the hyperlink in. You'll need to add a typical hyperlink HTML markup, but in the part where you'd typically include a URL, you'll include the pound symbol (#) then the name of the object you're linking to. Here's what it looks like:
<a href="SAME PAGE URL#INSERT_YOUR_OBJECT_NAME_HERE">Click here to see the content below.</a>
Example
<a href="https://blogging-dunia.blogspot.com/2019/08/how-to-create-jump-link-in-same-page-in.html#jump-link">This is the Content.</a>
5) Voila! You've got a functioning hyperlink between two pieces of content on the same page.
Simple as that.
No comments