Can not jump to anchor on another post
-
Hello!
I write a post, and want to jump to a special part on another page, and I follow the tutorial in that page:
http://en.support.wordpress.com/splitting-content/page-jumpHere’s my post with the link: https://mysignkey.wordpress.com/2015/04/22/example-1/
the source page: https://mysignkey.wordpress.com/2015/04/22/ex/
my code:
The More Tag » Custom Read More Messageand the URL in the browser after I click the link: https://mysignkey.wordpress.com/2015/04/22/ex/#custom-read-more-message
However, when I click on this link, it just displays the whole post (from the very beginning, not the part I want). I have no idea what I did wrong.
Please help me, and thank in advance!
My blog I need help with is: https://mysignkey.wordpress.com/The blog I need help with is: (visible only to logged in users)
-
Hi there. You added the link correctly, but I don’t see the anchor point in the other post.
Edit https://mysignkey.wordpress.com/2015/04/22/ex/ and switch to the text/html editor. Look for this text:
<h1>Custom Read More Message</h1>Change it so it looks like this:
<h1 id="#custom-read-more-message">Custom Ream More Message</h1>In other words, you need the a-href at the point you click, but then the anchor point should have an id attribute that exactly matches the one for the link.
-
Thank you, kokkieh!
It’s relief to know where I’m wrong, I thought it was something to do with the theme, and you showed me exactly what my mistake was.
At first, I did what you said, edited my post and changed the code, but nothing happened. Then I removed the hash character in the code you gave me, and it worked.
`<h1 id=”custom-read-more-message”>Custom Ream More Message</h1>
Thank for your time and your help, I will remember how to jump to another page from now on!
-
At first, I did what you said, edited my post and changed the code, but nothing happened. Then I removed the hash character in the code you gave me, and it worked.
Oops! My mistake. Yes, the # should be in the link, but not in the anchor. Glad I could help :)
- The topic ‘Can not jump to anchor on another post’ is closed to new replies.