I’m trying to create anchor links to chapters/text inside my post.
I followed the instructions here:
and I created the proper code in the html view, using the
Link code: VisibleTextLeadingToTarget
and the code for the Invisible target:
What happens is that the anchors work but they open a new page – opening it in the right place where I had put the anchor.
But what I want is them just to jump tp the anchor in the page – not to open a new tab and load again the whole page.
So, it looks like that even if I create the code just using as text for the href “#anchor”, wordpress changes it in “nameofwebsite.it/#anchor”, and this brings to the loading of a new page rather than just the jumping to the anchor in the same page already loaded.
If you want to see an example in my website, check this page:
The code I have added in the html view in wordpress is:
but what I see in the source code once the page is loaded is
Could you please help me to understand why wordpress is adding the whole url to the anchor?????
- The topic ‘Page jumps (anchors) don't jump – they load a new page’ is closed to new replies.