Setting up WordPress for AMP: Accelerated Mobile Pages
This post explains what AMP is and aims to do, who should implement and why, how to get your WordPress site ready for AMP and how to make sure Yoast SEO integrates nicely with it.
What are Accelerated Mobile Pages/AMP?
The Accelerated Mobile Pages project aims to make pages load instantly on mobile. The web is slow for lots and lots of people, in fact, the majority of the people using the internet do so over a mobile phone, often on a 2G or sometimes 3G connection. To make pages load instantly, AMP restricts what you can do in HTML pages. Fancy design is stripped out in favor of speed. AMP is very much a function over form project.
AMP pages look like a very stripped down version of normal web pages but do contain all the important content. Not all ads will work on AMP, not all analytics will work with AMP. All the “fluff” of your pages is stripped in AMP, including the read more links you might have built into your theme, etc.
The trade-off is that, by sacrificing some of that flexibility (your custom JavaScript, ads, etc.), not only do you speed up your site, but you may become eligible for new, rich results in search engines.
Which plugin(s) to use?
The official AMP plugin does an incredible job of enabling AMP on your site. It can even automatically convert your template and content.
When you enable this plugin, all the post URLs on your site will have a /amp/
version. So you can go to any post, add /amp/
to the end of the URL and you’ll see the AMP version. The plugin adds a standard meta tag in the head of your normal pages. This makes it possible for Google and others to recognize that these pages exist.
You can also configure the plugin to use ‘native mode’. This will simply replace your existing theme code and content with an amp-compatible version. You may need to make some tweaks in the plugin’s configuration options to get this working correctly on your site.
How does this work with Yoast SEO?
We automatically integrate with the official AMP plugin to output correct metadata, structured markup, and other SEO elements. Don’t worry – we take care of everything!
Read more: How site speed influences SEO »
Coming up next!
-
Event
WordCamp Netherlands 2024
November 29 - 30, 2024 Team Yoast is at Sponsoring WordCamp Netherlands 2024! Click through to see who will be there, what we will do, and more! See where you can find us next » -
SEO webinar
The SEO update by Yoast - October & November 2024 Edition
26 November 2024 Get expert analysis on the latest SEO news developments with Carolyn Shelby and Alex Moss. Join our upcoming update! 📺️ All Yoast SEO webinars »
Hi Jono,
Thanks for the informative article on the importance of AMP.
However I am facing issues with some of my pages, what could be the possible fix for such errors.
Thanks
What sort of issues?
Some time ago I also implemented pages per amp and it worked for me :) thanks
Hey Jono Alderson
Thanks for the insight.
Somehow, I have a concern. I read a post on your website that talked about duplicate content.
Will having AMP in a blog not imply the existence of duplicate contents?
Hey Emmanuel, If your AMP pages are implemented well (include a canonical tag pointing to the original article) there shouldn’t be a problem.
Great post! Thanks for sharing the information and keep up the good work.
Can Yoast please reply to the earlier comments. Also, as the reviews of advised AMP plugin are very, very mixed. Almost as much 5* as 1*…what does not look good. I just installed it, switched the ‘native’ on and it created a mess. Mobile was somewhat ok, but my laptop version was a drama. Switched off and I am happy again. I trust Yoast advices normally but I have to be more carefull from now on.
I mentioned in the post that you might need to spend some time working with the plugin settings in order to get things working correctly. And, if your site relies heavily on custom JavaScript, that might require some sacrifices (or, just improvements).
Willem, the official AMP plugin is absolutely fine. However, it isn’t just a set-and-forget plugin, especially when running in Native mode.
Also the Yoast AMP Glue addon is really for the traditional AMP mode, which is now called reader mode.
If you want step by step instructions on how to implement Native AMP correctly, you can visit my Native AMP blog post at Sonic SEO .co.uk and if you’re stuck with anything just inbox me and I will help you. Thanks.
Hi Willem, Sorry for the delayed reply. We understand your concerns. We’ll look into this (and the other comments) and get back to you asap!
Some time ago I also implemented pages per amp, but I didn’t notice any bigger results, even though I expected them.
You might like to mention the limited number of themes this works with and save your reputation. Or try to. Some actually bounce off your recommendations thinking you must know what you are talking about. You probably won’t allow this comment for obvious reasons.
I did mention in the post that some configuration and tweaking might be necessary, and that elements like custom JavaScript aren’t (easily) supported. That’s not quite the same thing as there only being a limited number themes which work with AMP; rather, it just means that people with themes which use a ton of JS, and/or which aren’t built very well, might need to spend some time doing some housekeeping.
Hi Dennis, Thanks for sharing your view here. We’ll get back to you about this, as soon as Jono is back from his holiday.
I’ve been using the official AMP plugin and I keep getting 404 errors on most of the AMP pages which is a problem. All AMP pages seem to auto-redirect to the homepage which makes for poor UX.
Why does this happen and is there any way to overcome this?
That sounds like you might have a plugin or theme conflict. Have you tried disabling all of your other plugins to see if that helps?
Mine was about image sizes being smaller. Really? I mostly have 1600 x 2400 px for book covers. Also, Google can’t find the bot.text anymore!
I am using this plugin and from my experience, I can say its a good and light amp page creator plugin. With it’s latest updates I am really satisfied the way it’s working. But I am finding a solution to an issue where few pages are not converted to amp
Although the AMP is very supported, I think it does not see the expected interest. An alternative method will soon be adopted. Because the installation is so confusing and challenging that makes people give up trying more.
What’s the down side to enabling AMP ?
Would there ever be a need to “roll back” to non-amp? is it possible?
thanks for the article.
Just deactivate or delete it. Everything will go back to normal.
So no need for the GLUE plugin?
Hi! Not anymore, no :-)
how I setup amp for my news type blog
Hi! Here’s everything you need to know about optimizing news sites (including enabling AMP for them): https://yoast.com/optimize-news-site/
Seems easy enough. I’ve used AMP in the past when Google showed the lightning bolts in the SERPS. However, I’ve removed it again later due to some issues.
Do you think it is necessary/usefull for websites in the Netherlands, where most people are actually on 4G connections these days?
Hi Zino,
Sorry for the postponed reaction on your question.
To be honest, that’s exactly our issue with AMP. If you have a news site or for instance recipe site, AMP will provide certain (ranking) benefits, like being included in the Google search result page’s carousels.
If you have a plain company website or something like that, where there is no content on the website that could be included in these rich results, it’s hard to pinpoint if your site will benefit from AMP. Frankly, I don’t think you need it in that case.
We managed to make our regular website faster than our AMP site at some point, so, as you say, speed wouldn’t be a reason to provide an AMP site as well ;-)
Does that answer your question?
Interesting stuff! So let’s say a person clicks one of those highly ranked posts, are they automatically sent to the AMP version of the post? Or does a decent Dutch 4G connection somehow cause a redirect to the original?