First of all, thank you for the Mobile theme for AMP pages. It is a life-saver.
A) Currently, the permalink for AMP pages look like this: site.com/page/?amp. I want to change it to site.com/page/amp/. How do I change it? My hosting platform is NGINX.
B) For AMP Adsense ads, there are 2 code-blocks given by Adsense namely the insertion of the amp ads JS file in the header block and the actual AMP auto ads code-block in the body. However, in the mobile theme setting, there is only 1 box for AMP ads. Where do I put these 2 block blocks in <head> and <body> respectively?
C) Currently, I have Mobile + AMP option enabled in the mobile theme settings page. I notice that time-to-time, the Mobile theme switches back to Mobile only – thus removes the AMP option from the site completely. I don’t know what triggers that to switching. Can you please explain how to stick the option to Mobile + AMP constantly?
D) I want to stick to the text based logo for Mobile and AMP pages however I want an image logo for desktop version. The moment I specify the image under Header > Logo settings for the main theme, it automatically picks it up for Mobile theme too. Can I have text-based logo just for mobile + AMP pages? If so, what settings should be using?
Thanks, JK
Hi,
A) The link for amp are like this site.com/page/?amp only for testing the actual link from google amp will look like this -> https://www.screencast.com/t/BqlFLsYx5
B) Please check this similar topic -> https://forum.tagdiv.com/topic/how-to-implement-adsense-amp-ads-in-amp-posts/
C) Usually this a plugin conflict that reset the mobile theme settings.
D) This can be achieve if you are using the a header template from tagDiv Cloud Library and responsive version in mobile theme ( set the option “Amp” ) in this way the logo set with TagDiv Composer will be display on desktop and mobile and the logo for mobile set in theme panel will be show only on amp version.
Hope this will help you!
Thank you!
For A), I need a clean url ending with /amp so that I can setup page cache correctly. With ?amp, it messes up the mixed caching for mobile & desktops. Please suggest how to fix the ?amp to /amp using the mobile plugin.
For B), OK
For C), how do I go about debugging this? Any suggestions?
For D), when I try to open cloud templates, I get this error: Invalid reply from server endpoint. Please suggest.
Thanks.
Hi,
A) This is the new implementation of the default AMP WordPress not from our theme, you can test this using only the AMP -> http://prntscr.com/ptne8m -> http://prntscr.com/ptnef8 -> http://prntscr.com/ptnelp -> http://prntscr.com/ptnetk
Please check this topic -> https://wordpress.org/support/topic/change-amp-to-amp-and-amp-home-page-not-working/
C) You need to deactivate all non theme/tested plugins, also if you are using child theme, clear all cache and try again.
D) Please make sure that all the settings are like in our requirements, please follow the guide carefully
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
Usually this problem can appear from “Invalid reply from server endpoint error” that is caused by insufficient WP_Memory_limit and from low connection to internet.
Thank you!