Splitting Content » Page Jumps
- Why Use Page Jumps?
- Create a Page Jump
- Sending Readers to the Top
- Jumping to an Anchor on Another Page or Post
Why Use Page Jumps?
You might have a list of items at the top of the post and using these jump links means you can allow someone to jump straight to a place rather than scrolling down and looking.
Create a Page Jump
First, switch to the Text Editor if you’re not already using it by clicking the tab above where you enter body text for your page or post. The link that starts it (the ‘Click me’) is written like this:
<a href="#unique-identifier">Click me</a>
Note the #!
The anchor point where the above link goes to is written like this:
#unique-identifier in the ‘Click me’ link matches the name attribute of the anchor, which is
So you could have
<a href="#another-identifier">Jump 2</a> to
<a id="another-identifier">Place 2</a>
Hint: make sure you have no spaces in your IDs, since that can cause problems in older browsers.
Sending Readers to the Top
At the beginning of the post or page, add this before all of the other HTML:
and anywhere you want a link that will bring the reader back to the top of the page, you put this:
Alternatively, instead of putting the ID attribute on an empty <a> tag, you can add the ID to the first element on the page – such as a heading – like this:
<h1 id="top">Page Heading</h1>
Jumping to an Anchor on Another Page or Post
This also works if you want to jump to a specific place on a different page — just make sure you add the unique identifier part (the name that you assign to that part of the text) and the # at the end of the page link, like this:
<a href="http://myblog.wordpress.com/example/#specific-place">Click me</a>
Want to click an example? Here you go: The More Tag » Custom Read More Message