Accelerated Mobile Pages
AMP is an open source technology designed to deliver content quickly to mobile devices. From a technical point of view, AMP is a simplified HTML, several JS scripts and an automated and distributed cache that speeds up the loading of pages from anywhere on the earth (AMP CDN).
Implementing AMP for an existing website in practice means generating pages with the same content as the original but meeting the requirements of the AMP standard and connecting them using amphtml links for the basic pages and respectively canonical links for the AMP pages.
A properly generated AMP page with a copy on AMP CDN servers on mobile devices loads almost instantly, even over slower network connections. In addition, a page with its AMP equivalent will be marked with an AMP technology icon (lightning in a circle) in Google search results. In practice, the use of AMP allows original websites to be displayed on desktop devices with high-speed Internet access and simplified versions in AMP format on smartphones.
If you have interrupted loading the page on your phone at least once after a few seconds of waiting, the benefits of using AMP after reading the above paragraphs should be clear to you.
How do I run AMP in WordPress?
In the case of WordPress CMS, the AMP page can be generated automatically by installing the official plugin AMP for WordPress. Unfortunately, this extension only allows you to create simple AMP pages for your entries, giving you virtually no control over the process of converting your content and its appearance. The text of the entry will be placed in the default template with one set of fonts and a fixed configuration. Of course we can write our own AMP template or code the individual solution (i.e. we can write our own plugin), but in my opinion in many cases it will be an unnecessary labour.
Fortunately, thanks to the huge popularity of WordPress CMS, we have access to a variety of plug-ins that allow us to generate AMP standard pages – both for free and premium. Among the free solutions with the possibility to buy optional functionalities (e.g. integration with the popular Contact Form 7 or AMP for WooCommerce) the extension AMP for WP (note, the official plugin of WordPress authors is AMP for WordPress) by Ahmed Kaludi and Mohammed Kaludi is very attractive.
The extension allows for advanced personalization of both the final appearance of AMP pages and the components. Interestingly, the plugin can generate AMP not only for entries, but also for pages and other types of content (added by template code or other plug-ins, although it is a premium feature).
The features of the free version are impressive. Since version 0.9.80 we can personalize the appearance of AMP pages almost in any way, controlling their color, typography, menu, related content, advertising, analytics and many others.
- Four unique templates to choose from (version 0.9.80) – each with personalization capability
- Support for entries, pages and your own content types (premium)
- Advanced support for WooCommerce including product and basket (premium)
- Support for contact forms (premium)
- Possibility of inserting AdSense advertisements in the content
- Integration with Yoast SEO
- Integration with analytical tools (Google Analytics, Facebook Pixel, Piwik, Yandex, Alexa and many others)
- Generating schema.org metadata
- Viewing and handling WordPress comments
- Generating RSS feeds for Facebook Instant Articles
- Possibility of creating automatic redirections for mobile devices
- Inserting your own code in the header and footer
- CSS editor
- Translation editor
- Change of colour, typeface (Google Fonts), appearance and parameters of header and footer
- Possibility of placing a unique menu for AMP in a header or footer
- Support for widgets in the footer
- Social media sharing buttons
- Visual editor for posts and pages
- Support for plugins (Gravity Forms, Contact Form 7, Advanced Custom Fields Pro, Call to Action, etc.)
- Settings import / export
If the possibilities of personalization are not sufficient, we can also prepare our own template based on a special application skeleton prepared by the authors of the plugin. Authors provide detailed documentation, encouraging to create their own, unique templates.
Summary
The main inconvenience of the AMP format is the need to invest a lot of work in making the image of the base pages and their equivalents more coherent in a simplified version of the AMP. Tools such as AMP for WP make this process a lot easier, making the implementation of accelerated mobile pages much easier.
Do you use AMP format on your blog? Share your experience with the use of this standard in comments below.