I am trying to implement bookmarks/inline page linking to my wordpress page.
I have tried the simple rule in the wordpress page editor.
<p id="name1">.....................</p>
and call it using this following link
<a href=#name1> Go to name1 </a>
But it does not work. It stays at the same location though the URL has been updated with #name1 suffix
try:
<a href=#name1> Go to name1 </a>
<h1 name="name1"></h1>
<p>.....................</p>
Personally I recommend anchoring to the header, not the paragraph as that's a bitt messy.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.