We automatically add the <link rel=”amphtml” in the header.
Can you share the URL so that I can check and help you fix this?
For example, this page. I don’t see <link rel=”amphtml” in the header.
i have the same issue, my site do not get the amphtml after install ampforwpthis page
I’ve understood what the problem is in. If I don’t have <link rel=”amphtml” href=”/amp/”>in header, Vk.com doesn’t detect my pages as amp.
I note that the plugin generates a little different code like this: <link rel="amphtml" href="https://xn--80agfnksgkikc.xn--p1ai/amp/" />
You can reproduce it.
1. log in vk.com and try to attach the link to non-amp page in private message to your friend or to yourself (just enter your name in the search field above the messages)
2. install official vk app for Android and check the snippet in this message. It should have a lighting icon and be opened instantly. It will not happen before step 3:
3. Install https://ru.ww.wp.xz.cn/plugins/header-footer/ plugin or just enter manually in the header of each post <link rel=”amphtml” href=”/amp/”>
4. Repeat 1 and 2 step, the page will be detected by vk as amp. Screenshot
I understand that western people don’t use vk but in Russia it’s the most popular and important social net. We don’t use facebook, everybody uses vk. Vk support told me that I should have exactly <link rel=”amphtml” href=”/amp/”> in header for my amp pages to be detected.
I hope you will find free time to detect this difficult bug 🙂