Wordpress shortcut not working |
Wordpress shortcut not working |
Erik Emanuelli |
Jul 6 2021, 09:01 AM
Post
#1
|
Group: Members Posts: 2 Joined: 6-July 21 Member No.: 28,009 |
Hello everyone,
I don't know if the title is correct. My issue is the following. In this post: https://erikemanuelli.com/on-page-seo/ if I click on the menu links within the post, example: https://erikemanuelli.com/on-page-seo/#onpageseo the reading jumps directly to that part of the article. It's not happening here: https://erikemanuelli.com/link-building/#linkquality Is something incorrect in the HTML, or code, or anything else that you can see? I really, really appreciate the help. Thanks, Erik |
pandy |
Jul 6 2021, 11:50 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,753 Joined: 9-August 06 Member No.: 6 |
You've screwed up the link target IDs and included a hash sign in them.
CODE <h2 id="#linkbuildingconcepts"> The hash only goes in the link to the target, not in the target name. The hash is what tells the browser it's dealing with a fragment identifier, i.e. that it should go look for "some_name" as the value of a name or id attribute in the same page. It won't find "#some_name". |
Erik Emanuelli |
Jul 7 2021, 06:53 AM
Post
#3
|
Group: Members Posts: 2 Joined: 6-July 21 Member No.: 28,009 |
You've screwed up the link target IDs and included a hash sign in them. CODE <h2 id="#linkbuildingconcepts"> The hash only goes in the link to the target, not in the target name. The hash is what tells the browser it's dealing with a fragment identifier, i.e. that it should go look for "some_name" as the value of a name or id attribute in the same page. It won't find "#some_name". Thanks for taking the time to check the issue, Pandy. I'm fixing it right now. |
pandy |
Jul 7 2021, 07:37 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,753 Joined: 9-August 06 Member No.: 6 |
👍
|
Lo-Fi Version | Time is now: 21st September 2024 - 07:14 PM |