After installing the plugin, go to WP Admin Dashboard > Settings > Table of Contents. We chose to use the Easy Table of Contents, after comparing it with similar plugins using WPHive. You can check and compare similar plugins easily from WP Hive. There are several other plugins to do this. It has over 2,00,000+ active installations with very good user reviews. For that, you can use a plugin, and we have chosen the Easy Table of Contents. However, if you want to create a table of content, the above method can seem a bit lengthy.įortunately, you don't have to create anchor links for every section you have if you don't want to. The anchor links to my post and pages are working fine on desktop, but they are not opening on mobile. Now we know how we can add anchor links on WordPress without using a plugin. This is exactly the way we did before, so can we just add an anchor link to that? □ Okay, here's the next step! How to Add Anchor Links With a Plugin Now add the ID historyofwordpress into the section you want to jump to. If you're used to using the Text mode of the classic editor as your go-to option, you can add anchor links almost the same way we did with the Visual mode.įirst of all, add the anchor ID to the text you want to use as an anchor link. It looks the same as the one we created with Gutenberg editor, right? 3- Add Anchor Links Using HTML Ive been working on some clients WordPress with polestar theme and the problem with. See how we added our id into an H2 header below?Īnd now our anchor link is working perfectly. Ive added a script to alow links in the menu to scroll to anchor. In order to do that, you have to change the editing mode into Text and insert the ID into your preferred section. Now you have to attach the anchor ID to the section you want to forward your reader when they click on the anchor link. Just like before, we wrote historyofwordpress as our anchor ID and put a hash (#) sign before it. It is also quite easy to do that and here's how –įirst of all, select the text which you want to turn into an anchor link, and click on the link button. You can also add anchor links using the classic editor. We know some of our fellow bloggers and WordPress site owners still feel comfortable using Classic Editor despite the Gutenberg's ease of use. 2- Add Anchor Links Using WordPress Classic Editor
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |