Note on my beta music site (changed the name end of 2015 from a long one to short one), using Newsmag theme, I currently have this:
===============
Total indexed
1,828
Accelerated Mobile Pages
Fix errors on your Accelerated Mobile Pages (AMP) in order to have them prominently served to mobile users. Learn more.
Status: 2/27/16
286 Indexed AMP pages 15 AMP pages with errors
============
On another site, the one of mine in the TagDiv showcase,
Total indexed
18,874
Accelerated Mobile Pages
Fix errors on your Accelerated Mobile Pages (AMP) in order to have them prominently served to mobile users. Learn more.
Status: 2/27/16
1,172 Indexed AMP pages 359 AMP pages with errors
============
So, some of the old content the pages just are messed up and not sure some stuff I want to fix. But am looking into it.
Point being it’s not entirely fault of plugin for any issues with the AMP validation.
Welcome to the circus! No more elephants, sorry!
Some of the errors are odd, and I suspect related to a bad ad element on the page — except ads don’t render on AMP on our sites right now. So, odd: for example this story gets a bad element for “container” not supported, but the pages near to it have no such error, and I don’t see anything in the post itself that would trigger that on first view.
So, very odd. So seeing maybe a 10-20% fail rate on “old” content.
As a heads up to anybody moving to get AMP setup ..
the one major bugaboo seems to be Google not liking the obviously bad method WP has used for centered text all these years (which should have been a CSS class).
FYI, all the
<p align="center">Centered Text</p>
is going to show as an error in AMP validation (!).
Seems like a good time to remember how to do a search/replace via MySQL for the WP post meta.
( DOH ! )
If you prefer a plugin to do this — keeping in mind you BETTER make a backup of your MYSQL DBASE *first*, then this seems popular and recommended:
https://wordpress.org/plugins/better-search-replace/
Obviously making a class for centered text like
.centerboy {text-align: center;}
goal would be search replace to end up with
<p class="centerboy">Centered Text</p>
Latest version of AMP as of 3/5/16 addresses the issues with Windows servers generating blank pages.
Main issue I’ve run into so far with validation errors is the stupid long-standing way WordPress has done alignment on paragraphs with an align tag, which should not be used in modern HTML. I am guilty of being lazy about this also, and knew it was going to bite me at some point.
So, all the
<p align="center">Centered Text</p>
stuff needs to be replaced with a centered text CSS class.
Search/replace in the mysql dbase seems to be the way to go on that.
Similarly people who were doing tables by hand with stuff like
<td bgcolor="#efefef">My cell</td>
will also need to replace stuff like that with something like
<td class="tdcolorefef">
where you create the custom CSS for that class.
Technically modern HTML should not have *any* inline styles, but should only have CSS classes. Annoying but true. And the Google protocol presumes 21st century HTML and not HTML 3.1 era stuff.
Sadly, I’m old enough to remember hand writing HTML where we didn’t even need closing tags!
I am actually going to try out this plugin as a simple ‘lazy’ method vs going back to phpmyadmin to do the command line search/replace:
https://wordpress.org/plugins/better-search-replace/
This may prove useful:
http://www.wpbeginner.com/plugins/search-and-replace-plugin-for-wordpress-database/
So, anyway – hope that helps.
( REMINDER: always make a full backup of your mysql dbase from your hosting panel > dbases > duplicate dbase before you do *anything* to modify your dbase from any plugin or from phpmyadmin !! )
ALSO:
happy to say the ‘bug’ I reported to the AMP plugin developers is fixed, where when the /wp-content/ folder is renamed (using proper hook in wp-config.php), to something like /assets/ — the amp extension now renders properly. Before it could not find itself when the directory name changed.
For those who have noticed, yes, the “eyeball” hit counter doesn’t increment for AMP page views, and so I brought this up March 17 and here is the thread with solution:
https://forum.tagdiv.com/topic/how-to-hook-hit-counter-into-amp-header/
Chris getting a problem with AMP nowadays from google saying forbidden Tag
http://sonsoz.com.tr/pamuk-eller-cebe-yoksa/amp/#development=1
validator.js:382 AMP validation had errors:TA.error @ validator.js:382
validator.js:382 http://sonsoz.com.tr/pamuk-eller-cebe-yoksa/amp/:80:9 The tag ‘interaction’ is disallowed.
What shall i do what happened?
Any help pls?
Found the Problem a Plugin making that… Apester quizes and polls so anything i can do to solve it?
Solved: The Apester Plugin : when u use interaction then it makes error on all pages but if you use iframe it causes errors only on Poll’s and Quizes… So i start using iframe’s when it comes to polls , i accept these will not be indexed by gooogle as amp… But the rest is now ok…
Yes, as you’ve learned some plugins inject funky javascript into pages into odd places, and some will need to be updated by plugin author to more gracefully interact with pages. Some also put non-standard class names or rel tags they just “make up” which may not be proper modern HTML5/CSS3.
It’s an adventure 🙂
Hello Chris,
I installed Yoast SEO Glue and AMP plugin on my website http://www.bigscreenhouse.com and when i check Accelerated Mobile Pages on Google Search Console I found that one page is indexed and 3 AMP pages with errors. I checked the error but its mentioned as “Unknown syntax error” http://www.bigscreenhouse.com/videos/sai-pallavi-vanitha-cover-photoshoot-video/amp/
So can you help me?
Also as on Newspaper theme there’s a feature to select the post format b/w “Standard” and “Video”. When i choose the ‘Video’ the URL which is added to ‘Featured video’ is not showing up on /amp/ . If you can provide any solutions for these. It will be much helpful.
Thanks in advance!
Hi folks
I no longer have *any* time to help out around here, sadly, so you won’t be seeing my smiling face anymore on the TagDiv forums unless I myself desperately need help with something.
Best bet is to follow the AMP plugin support threads.
Note that “featured” items outside of posts don’t show up on AMP as they are not part of the actual post box. However the plugin docs do have solution for adding featured image to post template, so presumably featured image would work same way. Upshot – you may need to modify the amp template to your needs.
The unknown syntax error could be just about anything … but generally you can’t have inserted javascript from bad plugins, you can’t have over active CDN/plugin compressing the AMP code and breaking it, and you can’t use default injection of adsense codes that use javascript.
Hope that helps! Good luck! 🙂
Have a great 2016 everyone!
Signing off.
CS
Sorry but i not’ undstand
I try to instal amp and glue … but my page it’s a very sample
I don’t see a logo.
i don’t see a futured image.
see example http://wikitesti.com/il_canto_del_mare_-_frisina/amp/
I can isert a my banner? My traffic mobile are 70 %, if i don’t want change my banner with a Adsense banner. The adsense banner have a low cpm
Are possibile have a template for amp, with my banner?
Thanks
-
This reply was modified 10 years by
pasqualino77.
See the support for the AMP plugin on WordPress.org plugin repository; this theme has no control over the plugin or the AMP template. Read the docs on the AMP support site for plugin on how to enable featured images, how to enable adsense, tracking, etc.
The AMP template is NOT part of the theme.
Guys here is the Easy Guide to Implement AMP with Newspaper Theme
https://forum.tagdiv.com/topic/easy-guide-to-implement-amp-with-newspaper-theme/