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:
https://www.wpbeginner.com/beginners-guide/how-to-easily-add-anchor-links-in-wordpress-step-by-step/#manualanchorlinks
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:
https://wordpress.org/plugins/easy-table-of-contents/
If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
https://www.youtube.com/subscription_center?add_user=wpbeginner
Feel free to take a look at the written version of this tutorial here:
https://www.wpbeginner.com/beginners-guide/how-to-easily-add-anchor-links-in-wordpress-step-by-step/#manualanchorlinks
Check us out on Facebook
https://www.facebook.com/wpbeginner
Follow us on Twitter
http://twitter.com/wpbeginner
Check out our website for more WordPress Tutorials
http://www.wpbeginner.com
#WordPress #WordPressTutorial #WPBeginner
14 replies to "How to Add Anchor Links in WordPress (Step by Step)"
Thanks soooo much! This is what I exactly looking for!!!
Hi there, i can't seem to locate "HTML Anchor" anywhere in my WordPress. What does that mean and should I do? 😕 Thank you.
Thank you!!!
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
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
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?
How do you add a link to your profile though?
Is it possible make to anchor link to different post or page
Excellent, thank you so very much!
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!
Very helpful thank you 👍
does this same process work with CTA buttons that I would want to scroll to a form on the same page?
This really helped me….. No need for installing any plugins.
Thank you for this video. It helped allot.