Hi @jayconnor
May I know how are you adding these linked content (a.k.a jump links)?
Hi Ahmed,
I am adding them using the text editor in the Custom AMP Editor.
Originally I used the “Copy Content” button, when that didn’t work I manually copied the content from the text editor of the page and pasted it into the text editor of custom amp.
The html consists of two parts – the “jump” which is formatted as:
< a href=”#target_phrase”>(Jump to topic)< /a>
And the “target” which is:
< a id=”target_phrase” >< /a><span style=”color: #961006;”> Target Phrase < /span>
I added some spaces above to invalidate the html in this reply.
Any help or advice is appreciated.
Hi @jayconnor
That’s really strange, Can you please tell me how are you adding these jump links in the non-amp (desktop version)?
Regards,
Hi Ahmed,
I am adding them using the text editor.
Below, I have added a space after the opening bracket to invalidate the html for this example. Otherwise, this is the code from my homepage including the formatting:
This is the link (Jump to topic) that a visitor can click to jump farther down the page:
< span style=”color: #961006;”>Target Text</span> – < a href=”#target_phrase” >(Jump to topic)< /a>
This is how that target is identified farther down the page:
< h4>< a id=”target_phrase”>< /a><span style=”color: #961006;”>This Is The Target Text< /span>< /h4 >
There are additional “Back To Top” jump links below the content to take the visitor back to the starting point farther up the page.
I have a suspicion that the issue is being caused by the “#” sign that is used to identify the target phrase:
< a href=”#target_phrase“>(Jump to topic)
or perhaps it is the quotation marks – I haven’t tested that.
Like I saw mentioned in another support thread, I have also noticed that using the “&” sign creates an issue with the amp pages only as every instance of “&” is converted to “&”.
I would appreciate any help – I would like to get these jump links working on the amp page as my content is very long. I have seen an increase in time on site and a decrease in bounce rate since adding the links to the non-amp page; my stats for the amp pages are very poor right now no doubt due to the length of content and it being necessary for visitors to scroll through the page to find what they might be interested in.
Thanks for your attention!
Hi, I have exactly the same problem. I’m using a plugin called Page scroll to id.
On AMP version of the site it the anchor links don’t work. The plugin code is also shown instead of the actual h2/h3 text.
Is it a bug or I’ve configured it wrongly? I’d appreciate any info. Thanks
For reference, The amp version of the site: AMP
The fully working standard ver: Click
I guess that there’s not enough interest in this issue to justify a solution or more follow up.
I’ll have to disable amp on the homepage – I’m not going to serve different amp content and having links that don’t work is just bad business.
I don’t know if it is update related but my indexed amp pages having been steadily dropping since the last update anyway.
True, they don’t seem to bother even to reply – I will also turn this AMP plugin off, completely.
@lowerback @jayconnor
Im extremely sorry for inconvenience. We did not ignore your question, we have hundreds of emails and messages coming our way and it’s hard to reply each and every one of them. We are improving our team so that we can handle such requests.
Can you please contact us via https://ampforwp.com/support/
I will personally look into this issue and help you fix it.
Again, I apologize for the inconvenience.