If you’ve seen sites that have links in their longer articles to help users jump to the section they want to read then you know how helpful those can be. These can help with SEO as Google can show them below your search listings for easy navigation. In this video, we will explain what anchor links and show you how to easily add them in WordPress.

If you would like to see our written tutorial for this, you can find it here:


For the first method, is for sites using Gutenberg. Start by creating the first link by adding the text, highlighting it, and adding a pound sign (#) followed by the text want to add to it. For where you want the link to jump to you would want to select the header and in the advanced area add the text from the first link.

Should the block tell you it contains unexpected or invalid content you would want to click the Convert to HTML button for the anchor link to work. If the advanced area does not give you the option you would want to use the verticle dots for more options and edit as HTML. In the p area, you will want to add an id =”” with the text you want to link to within the quotation marks.

For those using the classic editor, you will want to click the text tab, go to the tag for the section you want the link to and add the ID the same way you would have in the previous section. Should you not want to do either of those methods and want WordPress to do the work for you, you can automatically add the anchor links using the Easy Table of Contents plugin found here:

Easy Table of Contents

If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.

Feel free to take a look at the written version of this tutorial here:

Check us out on Facebook

Follow us on Twitter

Check out our website for more WordPress Tutorials
#WordPress #WordPressTutorial #WPBeginner

    20 replies to "How to Add Anchor Links in WordPress (Step by Step)"

    • Robyn Franceen Evans

      Thank you!!!

    • ALTIS World

      Hi. Does the link have to be o the same page? I want to create a kind of 'search page' with links that will take users to a number of locations. This so they can easily find specific content

    • Azhar Aziz

      I was searching for anchored linking for a long time, but i did not know it's name Anchor link. Very helpful video thank you so much wp beginner

    • Matthew Furman

      Excellent video. Hoping to get your advice please. Can I set up an anchor link with one of my menu items, so instead of it going to another page it takes you to a specific spot on my homepage?

    • maybellinelover

      How do you add a link to your profile though?

    • Chun Ho Kim

      Is it possible make to anchor link to different post or page

    • JosMorn1

      Excellent, thank you so very much!

    • Alexis Robbins

      THANK YOU!!!!! I was nearly in tears trying to solve this problem at work (I hadn't done it in so long!) and this was an AMAZING refresher. Thank you thank you thank you!

    • JJ Reptiles

      Very helpful thank you 👍

    • Eddie De Alba

      does this same process work with CTA buttons that I would want to scroll to a form on the same page?

    • Pita Vuli Kabulevu

      This really helped me….. No need for installing any plugins.

    • RAB

      Thank you for this video. It helped allot.


      i cant believe i finally found this tutorial

    • Abdulla Shafi

      thank you. but how can I change my existed link .like when I click on header -my account – register option it direct me to login page , but I want to add there register page link .can you help me please ?

    • Aura Arias

      Hey love, I don't have the anchor part on the left TT

    • Tash G

      This video explains it so easily! Thank you, really helped me out

    • HeartWork Organizing

      Thanks. I wasn't getting it from some of the other articles, but your explanation finally made sense. Thanks!


      Hi, I followed your tutorial. I notice that when I clicked the link, it jumped to the content without showing the heading title. I actually like to show the content with the heading title without scrolling up the page. Do you have any suggestions?

    • Bharat Thapa

      finally I found this wpbeginner on YouTube. Your blog is really helpful and it always gives the strong answer whatever I need to search on google. thank you


      I am making a custom return to top of page button. Is there an anchor for top of page? Also wondering if there is a way to link to prev/next posts without inserting individual URL I am trying to make custom prev/next post buttons and want to save time if possible.

Leave a Reply

Your email address will not be published.