The right question you should ask yourself when you have a Wordpress site and want to install AMP, is not how to install it (as in so many things in WordPress you will only need to install plugins) but why you need to install AMP?

If you are reading this article maybe you already Know what AMP (Accelerate Mobile Page) is. It's an open source project from Google and Twitter designed to make fast mobile pages.

There is some important information that will help you make a choice.

  1. AMP uses limited set of HTML, JavaScript, and CSS. You will not be able to use certain widgets and features on the mobile AMP version of your website.

  2. AMP supports Google Analytics, it does not support many other analytics platforms.

  3. AMP has less content, paradoxically your site will have less SEO value.

  4. The mobile version will be very different from the desktop version

If you want to speed up your website there are some other good practices than switching to AMP (choose a good host, optimize your images, install a WP caching plugin like WP Rocket, your web site will run faster and google will be happy :)

If you're sure this is what you want...

How to o setup Google AMP on your WordPress site?

  • logo AMP
  • logo WordPress

Download Project Files in github and Upload the folder to the /wp-content/plugins/ directory or directly from the admin area.

For a better customization of your site you can downoad:

How to disable AMP?

If you decide AMP is not suitable for you...You can deactivate your plugins. The issue is that if you deactivate the plugins you will have a tons of 404 errors for your mobile version. This is why a careful reflection is needed before the plugin installation.

How do I disable AMP results in Google?

To disable AMP results in Google you need to request a cache update, or recrawl, for the website. Unfortunately the Google documentation is unclear. For information it takes a few days before the AMP pages disappear from google search and everything goes back to normal. You may try using google webmaster tools and delete url pages that you do not index one by one, but usually a site has more than a few pages ... and this can be a haste in a tough business!

You can you fix the 404 errors with a redirection of your AMP pages/posts. The easiest way to do this is to:

  • Download the free plugin called Redirection By John Godley
  • Install and activate the plugin.
  • Visit Tools » Redirection to setup your redirects.
  • You need to setup 2 things: Source URL and Target URL
  • Source URL: /(.*)\/amp
  • Target URL: https://www.example.com/$1 (change example with your domain name ;)
  • Enable the checkbox “Regular Expression”

Full css browser

Conclusion

The message is clear! You do not need to implement AMP on your site.

It's better to look ahead and prepare, than to look back and regret.

Thanks for your reading!