How to Create Page Jump Links - without code! | LearnWP

How to Create Page Jump Links – without code!

Anchor Bookmarks - How to Create Easy Page Jump Links without code

This post was originally published on November 26, 2012. The post has been rewritten to show you the new and much easier way to create anchor links in WordPress.

In the past, creating page jump links required diving into HTML code. In this updated post, you’ll learn a simple way to do it with a Heading Block.

What are Page Jump Links?

Page jumping also referred to as anchor links or HTML bookmarks, is where a site visitor clicks a link and is jumped to a specific place further down or up a long page. Normal links always point to the top of a page. Anchor links are particularly useful for creating an index at the top of long pages. Like this…

In this post, you’ll learn:

  1. How to create an anchor link in a heading block
  2. Tips for Naming Anchor Links
  3. How to link to the anchor
  4. How to link to an anchor point on a different page

To Create your HTML Anchor:

Screenshot of Heading Block showing Advanced panel with HTML anchor
  1. Click + to add a heading block in your page or post
  2. Enter your heading text
  3. On the right side under Block Settings, click on Advanced
  4. Under HTML anchor enter a unique name. (number-1, for example)

Tips for Naming Anchors

  • Each HTML anchor must be unique within a page or post
  • No spaces between words in an HTML anchor
  • Remember HTML Anchors are case-sensitive
  • An HTML Anchor can include: hyphens (-), underscores (_), colons (:), periods (.)

Now, Link to the anchor

Once you have created your anchors, you can link to them. Here’s how:

  1. To create a link, type your text, or add an image or button. The text, button or image will be what you want your visitors to click on (the link) to go to another section in your page.
  2. Highlight your text, image or button
  3. Select the link option from the block’s toolbar
  4. Type in the HTML Anchor you created, starting with the hashtag (#) symbol. So, if you created an Anchor named “number-1” (like we did) you would type #number-1
  5. Click enter

Link to an anchor point on a different page

You can also link to an anchor on a different page by changing the link url and adding an anchor on that page. The url of the link would look like this https://domain.ca/otherpage#anchor.

So much simpler!

Now with the block editor in WordPress, it’s easy to create anchors in your pages and posts. It is so much simpler now without the need to edit code.


Extend your Learning…

If you liked this post, you’ll love our new WordPress Mastery Course. Perfect for anyone who wants to go from Mystery to Mastery

Related Posts

If you liked this post, you might also be interested in one of these.
Move your blog from WordPress .com to .org
Using both the Classic Editor Plugin and Gutenberg blocks

1 thought on “How to Create Page Jump Links – without code!”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top