Glue for Yoast SEO & AMP


Google is currently working on the “Accelerated Mobile Pages” or AMP project. The WordPress AMP plugin provides the technical implementation of the AMP specifications. This makes sure that your pages contain valid AMP code.

The Yoast SEO: AMP Glue plugin integrates Yoast SEO into your AMP pages. This makes sure your meta-data is implemented correctly.

Next to the technical SEO improvements, the Yoast SEO: AMP Glue plugin also provides a simple way to customize your AMP pages.
It adds rudimental styling in the form of colors and link styles, so your AMP pages can maintain the feeling your main pages have.
To change your AMP page design, go to SEO -> AMP, and look at the design tab.


  • Example AMP page, design changed with this plugin.
  • Post type support in the plugin.
  • Design settings in the plugin.


Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/yoast-seo-amp directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to SEO -> AMP to change your design and enable custom post types.
  4. You’re done.


Broken Links from Yoast

When I have Yoast SEO plugin active, I get links to AMP pages on my site. All of these AMP links are broken. When I deactivate Yoast SEO, all these AMP page links go away.

1) How do I deactivate AMP page creation in Yoast SEO?
2) How do I get the AMP page links to work?

Fast start to usable AMP Posts

Another great Yoast product. Thanks Yoast.

Automattic’s AMP and Yoast’s Glue are two essentials plugins to enable AMP. Pages will look good and get found by google, but there is a start more than an end. You’l want to invest time and energy to:
– Enable more than the minimum of Page Tracking analytics triggers, such as events, social shares, etc.
– Integrate ad serving technology, especially if you rely on ad revenue. It’s possible, but needs extra effort by a web developer
– Have alternate strategies for non-supported features such as forms, heavily formatted posts, and page post types.

After deploying these plugins, Google’s crawlers quickly found my pages and mobile traffic (viewing AMP pages) went up and fast. And the user experience on a phone with AMP pages is fantastic.

Works well

Everything is working well, do you have any advice for product pages on e-commerce sites? With AMP running I am unable to see the ‘add to cart’ function.

I’m using WordPress/WooCommerce.


Read all 18 reviews

Contributors & Developers

“Glue for Yoast SEO & AMP” is open source software. The following people have contributed to this plugin.


“Glue for Yoast SEO & AMP” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “Glue for Yoast SEO & AMP” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Bugfixes:
    • Reverts the canonical removal.


  • Bugfixes:
    • Fix styling of design tab.


  • Bugfixes:

    • Removed page from post-type list to avoid unwanted canonical link.
  • Enhancements:

    • Removed canonical feature because it is being handled by the AMP plugin.
    • Removed sanitizations which are already being done by the AMP plugin.
    • Added a check for Monster Insights analytics implementation and disables our implementation if present.
    • Added class selector implementation for AMP 0.4.x compatibility.


  • Bugfixes:
    • Fixes bug where AMP was only activated for the first post type in the list.
    • Made sure that the function is not declared multiple times.


  • Bugfixes:
    • Fixed underline setting that wasn’t working.
    • Added screenshots to plugin page.


  • Bugfixes:
    • Fixed bug where featured image wouldn’t be used properly anymore.
    • Fixed bug where CSS in Extra CSS field could be wrongly escaped.
    • Fixed bug where wrong hook was used to add_post_type_support, causing integration issues.
    • Fixed bug where post type settings wouldn’t save properly.
  • Enhancement:
    • Added some more escaping to color picker functionality.
    • Made sure no notice is thrown on frontend when post type setting isn’t available.


  • Split the plugin into several classes.
  • Added a settings page, found under SEO -> AMP
  • This new settings page has:
    • A post types settings tab;
    • A design settings tab;
    • An analytics integration tab.
  • Added sanitization functions that further clean up AMP output to make sure more pages pass validation.
  • Added a default image (settable on the design tab) to use when a post has no image. This because the image in the JSON+LD output is required by Google.
  • The plugin now automatically enables AMP GA tracking when GA by Yoast is enabled, but also allows you to add custom tracking.


  • Initial version.