If you’re wondering how to set up a WordPress AMP page, you’re not alone.
Website managers, in an attempt to optimize their site for mobile users, research Google AMP, only to find more questions than answers.
What in the world is AMP? Why do I need it for my website? If I want AMP pages, how do I even get started?
We’ll be answering these questions and more in this AMP guide.
Here’s what we’ll cover:
What Is Google AMP?
Google AMP stands for Google Accelerated Mobile Pages and it’s an open-source catalog of website pages that are mobile-friendly. AMP is meant to make these mobile pages load faster and easier to scroll through.
In reality, what happens is that Google AMP creates a duplicate of your website in AMP HTML format, which is built upon previously existing web technologies.
This strips away a lot of the elements on your site that make it load slower, in turn, making it faster. On top of that, Google then “flattens” your site to make it load even quicker.
Google released AMP in October 2015 with its main focus being speed. That makes sense because 53% of people leave a website if it takes longer than three seconds to load. And 73% of mobile users say they’ve visited a website that was too slow.
But how do these numbers affect your bottom line? Why does AMP matter?
AMP matters because of this statistic: a one-second delay in load time can result in a 7% loss of conversions.
Today, many businesses rely on their websites to convert, as is probably the case with your business. So you can see why a fast load time can potentially make or break your company’s growth.
Here’s another reason AMP is important: if a search engine sees that your site won’t load quickly enough for mobile users, Google won’t show it at the top of the search results.
This is why many of the well-known companies have implemented AMP on their sites, including WordPress, Pinterest, LinkedIn, and Reddit.
In keeping up with this new innovation, our own theme, Astra, is actually one of the very few themes with native compatibility to AMP. Announced early this year, it’s one of the bigger leaps that we have taken to make sure that your WordPress site is up-to-date with speed, across all devices and platforms!
Pros of Using WordPress AMP
How can using a WordPress AMP site benefit your traffic and business? Here are the upsides of optimizing for AMP.
Hello! My name is Sujay and I’m CEO of Astra.
We’re on a mission to help small businesses grow online with affordable software products and the education you need to succeed.
AMP Is Free
Since AMP launched, it has been completely free to use for anybody. It’s one of the many free tools Google offers for website managers. Basically, Google wants people to have a better experience using their service, and your site is a part of that experience. So why charge you to make your site easier to use?
Search Engine Optimization Boost
Google prefers to show users sites that are a part of AMP, so having AMP pages on your site gives you a better chance of showing up on the first page of search results.
Also, using AMP helps bolster your page speed, which is an important factor when it comes to SEO. The faster your site loads, the more likely Google will give it a better ranking in the search results.
Plus, Google AMP makes sure your site appears in the Google News carousel, which is a higher priority than above-the-fold results on mobile.
Better User Experience
Using AMP not only loads your website faster, but it’s also more convenient for site visitors. Speed is one of the most important factors for a website. As we mentioned above, most people leave a website if it doesn’t load fast enough.
So giving your users a better experience with AMP means you could see fewer bounces, happier customers, and a possible increase in sales.
Improved Server Performance
Because AMP strips away the elements of your page that slow it down, the necessary bandwidth goes down. And the less bandwidth your site requires, the better your server can perform.
Prevents Large Frameworks
If your site is in AMP, you have advertising options that can be exclusive to mobile users visiting your site. Ads will appear differently on your AMP pages than on your regular site, which means you can create and share mobile-specific ads.
Automatic Image Optimization
When you create an AMP version of your site, all of your images are optimized for mobile users, including converting images to WebP format when needed. So you can still deliver an easy-on-the-eyes blog post or page to your mobile visitors.
It’s Easier Than Expected
Implementing AMP on your WordPress site is much easier than a lot of other website-building platforms, thanks to some very helpful plugins (more on that below).
Because AMP is open-source, it continues to improve. Plus, it’s more secure because everything is public, which means there’s less chance of someone or something being able to corrupt the whole system.
Top 4 WordPress AMP Plugins
Manually setting your site up on Google AMP is complicated. Fortunately, there are plenty of AMP plugins for WordPress that make this process very simple.
So let’s take a look at the four best WordPress AMP plugins.
WordPress’ AMP plugin is good for both beginners and those who are looking to up their AMP optimization on a WordPress site. However, WP beginners may run into more of a learning curve than experts as it does require some simple coding.
This plugin gives you a guide that shows how you can customize your AMP site. Even though it may not be as user-friendly as some of the other open-source plugins, they are constantly developing it and improving it.
2. AMP for WP
AMP for WP is a plugin that immediately optimizes your site for Google AMP. It comes with extensions, design tools, and additional support.
The developers regularly update it to remove bugs and add new features, so you won’t get stuck with a plugin that never gets better. It’s ideal for WordPress novices as it operates without requiring much experience.
AMP for WP allows you to create an AMP design that’s different from your regular website design, thanks to the drag-and-drop Custom AMP Editor feature. This gives you complete control over what your mobile users see rather than leaving that up to Google.
3. AMP WP
AMP WP says it can make your mobile site load 5X faster by using its features. That sounds like a bold claim, but it’s actually believable.
The list of free features is quite long and includes things like “Full Google AMP Support” and “Automattic AMP” Plugin Compatibility.”
When you install the plugin, you can choose automatic installation, which is where WordPress transfers all files for you and you won’t have to exit out of your web browser.
The AMP on WordPress – weeblrAMP CE plugin has both a free and a paid version for creating AMP pages. You can create a complete AMP version of your website, optimizing posts, pages, tags, categories, and even archives.
If you get the premium edition, you can automatically convert forms so users can easily still use them, including MailChimp signup forms, Contact Forms 7, WooCommerce, WPForms, and many more.
weeblrAMP comes with default settings, so it can start working for you right away. And if you’re a developer, you have control over every part of the AMP — you can override templates, filters, and actions. This means your AMP site will look and act as similarly as possible to your actual site.
Whether you’re a free user or a paid user, the interface is simply designed, although it is catered toward developers and designers.
How To Setup Google AMP for WordPress
Now let’s go through the steps to set up Google AMP for your WordPress website. It’s not super complicated, so this walkthrough should eliminate the chance of errors.
We’ll be using the official WordPress AMP plugin and the AMP for WP as examples.
1. Install and Activate the AMP Plugin
If you’re using WordPress.com, you won’t be able to install any plugins unless you upgrade to their business plan.
However, if you have a self-hosted site on WordPress.org, you’ll be able to install any plugin you need.
To install a plugin, you can use the search function by going to Plugins → Add New, then typing “AMP plugin” in the search bar. Once you find the plugin, click “Install Now.”
If you want to upload the AMP plugin from your computer, simply hit the “Upload Plugin” button at the top of the page and upload your plugin.
Next, you’ll need to activate it. On the “Installing Plugin” page, hit the “Activate Plugin” link to make the plugin start working on your site.
After you’ve activated the plugin, you can now adjust the settings in order to customize how your AMP pages look.
Go to the AMP > General tab in the dashboard. This is where you can configure the plugin.
Once you’ve adjusted the settings to your liking, hit the “Publish” button. Your AMP site will now be visible to users and discoverable by Google.
You’re also able to choose if your posts, pages, or both will display on your AMP site. Deselect the checkbox for Supported Templates and you will see more options.
Choose required options and click “Save Changes.”
If you’re still looking for other customization options you can use several plugins like the Glue for Yoast SEO & AMP to integrate the Yoast SEO plugin into your AMP setup. Through good collaboration with Google the functionality of this plugin is now part of both Yoast SEO and the official AMP plugin.
But to add this plugin simply go to “Plugins”, click on “Add New”, then search for the “Yoast SEO & AMP”
Click on “Install Now” and then “Activate”. After activating the Yoast SEO plugin, navigate to “SEO” then click on “AMP”. It will provide you with other customization options for your page, just don’t forget to click on the “Save Changes” button.
3. Preview Your AMP Pages
Now you can preview your AMP site before you publish it. Just visit any one of your pages or blog posts and add /amp/ to the end of the URL.
Here’s an example:
With that, you’ll know if your AMP site is ready to go.
How to Setup Google AMP for WP Plugin
If you’re looking for more advanced design and functionality, easier Google Analytics integration and other additional tools like WooCommerce, Alex for your SEO strategies and OneSignal push-button notifications, among others.
1. Install and Activate the AMP for WP plugin
To install this AMP for WP plugin also navigate to “Plugins”, click on “Add New”, and then search for “AMP for WP”. Click on “Install” and then “Activate” the plugin.
2. Adjust the Settings
Now you can use the AMP for WP plugin, simply navigate to “AMP” in your WordPress dashboard. This will open the customizer divided into two sections which is the Settings and the Design section.
The Settings section shows mostly the backend features of the plugin which includes, among others, the following:
- SEO – for meta description and integration with SEO plugins.
- Performance – for toggling file minification on and off for site speed.
- Analytics – for integration with Google Tag Manager.
- Advanced Settings – for custom HTML for headers and footers, setting up mobile redirection and toggle retina images on and off.
The other important section is the Design section which controls the look and feel of the AMP output which includes, among others, the following:
- Theme Selector – for selecting themes from the drop-down menu.
- Design, header and footer, and homepage sidebar – for color schemes and typography
- Social – for social media display selection.
Always click the “Save Changes” button when you’re done customizing your AMP website.
How to Test That Google AMP Works Correctly
Now you need to make sure your AMP site is working okay. There are two main ways you can validate your WordPress AMP, both of which will give you a readout of your code and any errors you’ll need to correct.
Google’s AMP Testing Tool
The way you test your Google AMP site is through Google’s AMP testing tool. They launched it in October 2016, just a year after AMP itself launched.
So how do you use the Google AMP testing tool?
Well, once you land on the testing tool frontpage, simply enter the URL of your site, page, or post into the box and hit “Test URL.” Alternatively, you can paste the code of your website and click “Test URL.”
The Googlebot will then analyze your site’s AMP optimization, including the validity of your AMP markup and structured data.
If you have a valid AMP-optimized site, this tool will show you a preview of how your AMP pages may look on the Google search results page.
This tool makes it much easier to find any AMP errors on your site, and it can help show you the code that’s causing the problem. You can also easily share the analysis results with your team members by clicking the share button in the bottom-right corner.
You can also validate your WordPress AMP manually.
First, open one of your AMP pages. Then add the following to the of the URL:
Next, open up the developer tools console in your browser. If your AMP page has any errors, this is where you’ll see them highlighted in red. You’ll also see an explanation of the cause.
Many times, validation errors happen because of invalid prefixes, incorrect code and/or tags that aren’t allowed. Most of the time, the solution is given right next to the error explanation.
But that’s not always the case. When that happens, you’ll need to know how to correct those problems.
Resolving Google AMP Issues
On top of giving you a readout of validation errors, Google will often notify you directly of any AMP issues as well as steps to correct them.
But you should be aware of the common AMP errors and how to fix them because Google doesn’t always provide the answer.
So below, you’ll see the most common AMP issues and how to resolve them. You can also see a full list of Google-specific AMP errors here.
404 Error (URL Not Found)
Like we talked about above, you should be able to add /amp/ onto the end of your AMP pages after installing the AMP plugin. However, it’s possible you’ll see a 404 error right after you install the plugin. Fortunately, it’s a minor problem with an easy fix.
You simply need to refresh the permalinks. To do this, go to Settings > Permalinks. Then, without making any changes, click “Save.”
This basically refreshes the permalink structure, including the AMP versions of the page. This should correct the 404 AMP issue instantly.
AMP Blank Pages
Depending on the AMP plugin you use, you may see your AMP site loading blank pages or just not loading at all. This usually means your AMP pages are there, but they have errors.
First, refresh the permalinks like you did with the 404 error. Settings > Permalinks > Save.
If that doesn’t correct the issue, then you’ll need to go to AMP > General. Ensure that both the “Templates” and “Pages” checkboxes are checked, then hit “Save.”
This should correct the problem. View the AMP version of any blog post or page to make sure.
“A Value for the Logo Field Is Required”
One of the most common AMP issues in WordPress is getting the error message, “A value for the logo field is required” in the error report.
This one has a simple solution. It means you haven’t added a favicon or logo to your AMP site.
To add a favicon, go to Appearance > Customize > Site Identity. Under “Site Icon,” click “Select Image” to upload your logo. Once uploaded, click “Publish.”
“Invalid URL for HTML Attribute ‘href’ in tag ‘a’”
If your error report shows “invalid URL for HTML attribute ‘href’ in tag ‘a’” or something similar, this means your AMP site has a link that points to a nonexistent or 404-error website.
To fix this problem, click on the error and view the live version. Doing this will test your AMP page in HTML format and the line where the error is will be highlighted.
If understanding HTML codes sounds overwhelming, you can instead visit the AMP page and test every link, then fix or delete any broken links.
Duplicate .js Scripts
When you add a .js script to your AMP page, double-check that you didn’t accidentally add it twice. If you did, it causes an error.
To fix it, simply remove any extra .js scripts until you have just one.
When you get a “content mismatch” error in AMP, that means there’s content that was on the web page that’s missing in the AMP version. Usually, this is an embedded video that may have been deleted.
So not only does that look bad, but it will also generate this error.
To fix it, just remove or replace the video or whatever the page element is.
Cons of Google AMP
By now, you might think that participating in Google AMP is a no-brainer. But, just like anything else, there is a negative side to it.
CSS and JS Restrictions
Even though limiting CSS and JS frameworks helps sites load quicker, it can end up removing branding elements, like graphics, animations, and high-definition images. And one thing that makes a site unique and friendly on the eyes is the branding. You might have written a blog post that uses infographics — with Google AMP, those may be removed.
AMP only displays cached pages, meaning users may not be able to get access to your newest content. Why does this happen? Because Google can show results faster by loading your cached pages.
Limited Ad Revenue Options
Google AMP lets you advertise, but the process is complicated and offers limited integration with other ad platforms. Here’s the step-by-step process for using ads on AMP.
Can Hurt Engagement
Even though the idea of Google AMP is to increase engagement, some people report that using AMP leads to much worse bounce rates and fewer page sessions.
Statistics for your AMP pages are tracked and stored separately and differently than your actual site. So, unless you’re very careful and organized, you may end up losing track of your site stats.
The Main Benefit Of Using A WordPress AMP Site
If your website loads even a second or two slower, it could drastically affect your website traffic. Your bounce rate could increase. The user experience is poor. And Google may not rank your site well because it notices it’s slow.
Speed is the main positive for implementing a WordPress AMP plugin. Even though using AMP can help with SEO, improve your server’s performance, and optimize your images, having a fast website is the most compelling reason to use it.
If you’re thinking about giving your site a little speed boost, try it with the Astra theme. From the get-go, this theme is already optimized for speed and security. Boost that with its native compatibility with AMP and you’ve got something really powerful in your hands.