The AMP plugin screws up my desktop site layout!

Posted in: Newspaper
Post count: 19

Hello, I followed your guidance, but when I activate the AMP plugin, this screws up the layout of my desktop site.
Please see the screenshot
http://www.screencast.com/t/nT1ObLlS

How can I resolve? Do you have any workaround? Are you aware of this problem?

Post count: 35449

Hi,

Please make sure that you do not have any plugin conflicts, please deactivate all non theme plugins, clear all cache and try again.

Mobile Theme: Automatic Optimization for Mobile with Newspaper Theme -> https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/
How to Make an AMP ready Website with Newspaper Theme -> https://tagdiv.com/amp-newspaper-theme/

Please make sure that you activate the amp from mobile theme -> https://www.screencast.com/t/6m5bxthx8ec and you check the box from general Amp -> https://www.screencast.com/t/WEyXhNzY

For this error https://prnt.sc/mupdgl here is the fix.
You’ll need to go in wp-content/plugins/td-mobile-plugin/td-mobile-plugin.php
and at the bottom of file set this code
$theme_options = get_option( 'td_011' );

https://prnt.sc/mv165e
https://www.screencast.com/t/NclX3sIf

Thank you for your understanding

Post count: 19

Thanks for the clear instructions. I have one more concern. I tried to test AMP on my website on https://search.google.com/test/amp but it seems that AMP is not working. Is there something else I need to do? Can you please help? (see screenshot)
http://www.screencast.com/t/0OvccJgIls

Post count: 35449

Hi,

Please test you amp post not website url -> https://www.screencast.com/t/nZx0YTnzqaY
https://search.google.com/test/amp?id=1wJyx5wgK7d-5ZMGWRGZVA

Thank you for your understanding!

Post count: 19

Hi,
thanks for your response.
I have two more questions:
1) I noticed that the AMP test fails when I have WP Fastest Cache Premium enabled. Do you know what the reason can be?

2) when I load the AMP version of a page, this is what I see on desktop.
http://www.screencast.com/t/mZPvdVeV9vq0
The plugin support told me that AMP is not working correctly. I think it’s normal that looks like this on desktop. Can you please clarify it to me?
The test is passed according to AMP Google test
http://www.screencast.com/t/KBpKTMlBFz

Thanks a lot in advance.
Regards,
Fabrizio

Post count: 35449

Hi,

Unfortunately we did not tested our theme with WP Fastest Cache plugin, so we can not say way this provide the amp fails

Please check with other browses too, is possible to be a cache problem , here is how I see your website on desktop -> https://www.screencast.com/t/7GApiCtmfa and like so in mobile/am version -> https://www.screencast.com/t/KwHjZJYiozV

Thank you!

Post count: 19

Hello support team,
since I installed the AMP plugin I am receiving tons of 404 errors in my Google Search Console. I followed the guidance and your recommendations in this thread. The main error I am getting is “Custom Java Script is now allowed”.

I am attaching a couple of screenshot from my Google Search Console and hopefully you can help me to figure out the problem.
http://www.screencast.com/t/n8wjd9aHrV8W
http://www.screencast.com/t/ZcIOJayh0aU
Thanks in advance.

Post count: 35449

Hi,

‘While it does allow styling the document using custom CSS, it does not allow author written JavaScript beyond what is provided through the custom elements to reach its performance goals.‘

Please check the AMP HTML Specification
-> https://www.ampproject.org/docs/fundamentals/spec#html-tags
Also please check a similar topic -> https://forum.tagdiv.com/topic/custom-javascript-is-not-allowed/
-> https://forum.tagdiv.com/topic/a-mandatory-amp-html-tag-is-missing-from-this-document/

Also after you manage the javascript, please access your permalinks section of WordPress and press the save button again for the permalinks. you do not have to change the structure. Just save gain. This fixed the amp error for most users.

Thank you!

Post count: 19

I’m sorry, could you please be more specific about this Java Script error? I did not insert any custom Java script in my theme that I am aware of. Also the thread you kindly linked to me is not explaining much more and is linking into a loop.

My website is https://italiapragaoneway.eu

Thanks for your kind help.
Fabrizio

  • This reply was modified 7 years by fabriziomartini. Reason: Missing detail
Post count: 35449

Hi,

Please make update to v9.6.1 follow our documentation for How to Update the Newspaper Theme for WordPress -> https://tagdiv.com/update-newspaper-theme/

Please make sure that you do not have a plugin conflict, please deactivate all non theme plugins, also if you are using child theme please deactivate it, clear all cache and try again.

Thank you!

Post count: 19

Hi,
I updated the theme to 9.6.1 as you recommended and it seems that this version of the them fixed the issue with AMP.
Please see a screenshot from my Google Search Console
http://www.screencast.com/t/aMr4zNheTp

Thanks for the moment! 🙂
Fabrizio

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.