Archived topic
GP is compatible with AMP?
15 replies · Started by Iswan on March 27, 2021
Hi Tom...
I want to change my web to AMP, its possible with GP?
If yes, how can i find it and what should I do?
Oh, I want to have 2 sticky ads on my amp, on top up and bottom...
Hi there,
This should help:
https://docs.generatepress.com/article/amp-compatibility/
Hi leo, thank...
Can you display me about the theme design generatepress amp
Hi there,
GP does not create AMP templates - in the link Leo provided it includes the Offical AMP Plugin which is what creates those templates.
Thanks david,
It mean that I use the plugin suggest by tom, my amp web its same with generatepress template?
Hi there,
You only need 2 plugin things to enable AMP for your site.
The links for these 2 plugins you need are on the link Leo provided w/c is this one:
https://docs.generatepress.com/article/amp-compatibility/
The official AMP plugin for WP attempts to convert the theme to be AMP-enabled. But the catch is, some of the theme functionalities break.
The AMP + GeneratePress plugin attempts to fix these theme functionalities that the official AMP plugin does. But not all functionalities can be fixed so it's not a smooth experience at the moment.
Hi elvin,
Thanks for u good information...
So what template mode i should use in AMP setting?
Standar, Transitional or reader? I need the best one for this AMP Generetepress.
Try all and see what works best.
Ideally, you'd want Standard so you don't have to maintain amp and non-amp pages. :)
Perhaps you'll find this article useful.
https://webdevstudios.com/2019/07/30/amp-for-wordpress-plugin/#:~:text=Standard%20%E2%80%93%20This%20makes%20your%20website,AMP%20HTML%20on%20all%20devices.&text=Transitional%20%E2%80%93%20Formally%20known%20as%20Paired,both%20powered%20by%20your%20theme.
Hi Elvin, thanks for your insight...
After I implemented AMP on my webiste, the problame is google analytic not read by machine.
I use element to input my google tag manager.
I have input the code also on analytics AMP.
Whats the problem?
GA scripts are mostly likely not running. AMP doesn't run scripts as is.
Have you tried this?
https://ampforwp.com/tutorials/article/how-to-add-google-analytics-to-amp/
Reminder: Amp for WP is a third-party plugin. Its features and/or functionalities are out of our control and scope of support. If something breaks or updates on their plugin, we can't fix it on our end as we don't know the specifics.
I highly suggest you contact their support regarding this specific issue. :)
I think its on GP...
I do this AMP guide...
https://ampforwp.com/tutorials/article/how-to-add-google-analytics-to-amp/
I have 2 site with AMP with other theme, and its no problem with analytics.
If u dont believe maybe I give u my access to cross check
Hi there,
GP itself isn't able to interfere here - it stays completely out of the way.
Have you confirmed that your GA code is present in the source of your site?
Hi Tom, Thanks for you respond...
Yes I comfirm that.
I was tried it on my webstie.
Before I use AMP, I use element (WP Head) to input my tag manager.
So, After I use AMP the GA can't be reader.
I think it becouse I use element. So i try to use plugin CAOS to input my GA, And it's same, no result.
So, The last choice i try to input GA code in edit theme, I put GA to WP Header And it no result to.
Actually I am very confused.
Hi there,
switch the AMP plugin to Transitional Mode - this should keep the WP_head hooks intact.
Hai David, what the solution if i use standart? Where I input the analytics code.
Actually i don't like a transitional setting...
Can you give a solution? Because transitional is not best solution for me.