Skip to main content
MeteorGPLby WebbingApps

AMP

Plugin
Watch 0 Star 0
Install

Enable Accelerated Mobile Pages (AMP) on your WordPress site.

  • 0 stars
  • 0 watching
  • 0 downloads
  • GPL-2.0-or-later

Versions 1

Newest first · every version scanned before publication
  1. 0.4.2 Latest

    Fix: Prevent validation errors for html tag (h/t Maxime2 and everyone else that reported this error) Release notes

    81 files 89.5 KB Verified

Show 8 versions not available yet

Releases named in the vendor’s changelog or on WordPress.org that the repository does not have yet.

  1. 0.4.1 Not available yet

    Fix: Don't fire thecontent for featured image output

    Changelog entry

  2. 0.4 Not available yet

    New template: spiffy, shiny, and has the fresh theme smell (props allancole and the Automattic Theme Team).

    Changelog entry

  3. 0.3.3 Not available yet

    Handle many more validation errors (props bcampeau and alleyinteractive).

    Changelog entry

  4. 0.3.2 Not available yet

    Jetpack Stats support.

    Changelog entry

  5. 0.3.1 Not available yet

    Allow custom query var (props vaurdan).

    Changelog entry

  6. 0.3 Not available yet

    Fetch dimensions for hotlinked images.

    Changelog entry

  7. 0.2 Not available yet

    Lots and lots and lots of compatibility and validation fixes

    Changelog entry

  8. 0.1 Not available yet Release date not stated

    Initial version

    Changelog entry

AMP

Enable Accelerated Mobile Pages (AMP) on your WordPress site.

This plugin adds support for the Accelerated Mobile Pages (AMP) Project, which is an an open source initiative that aims to provide mobile optimized content that can load instantly everywhere.

With the plugin active, all posts on your site will have dynamically generated AMP-compatible versions, accessible by appending /amp/ to the end your post URLs. For example, if your post URL is http://example.com/2016/01/01/amp-on/, you can access the AMP version at http://example.com/2016/01/01/amp-on/amp/. If you do not have pretty permalinks enabled, you can do the same thing by appending ?amp=1, i.e. http://example.com/2016/01/01/amp-on/?amp=1

Note #1: that Pages and archives are not currently supported. Pages support is being worked on.

Note #2: this plugin only creates AMP content but does not automatically display it to your users when they visit from a mobile device. That is handled by AMP consumers such as Google Search. For more details, see the AMP Project FAQ.

Follow along with or contribute to the development of this plugin at https://github.com/Automattic/amp-wp

What it adds

  • Shortcodes: [gallery] [instagram] [polldaddy] [tweet] [youtube]

Installation

  1. Upload the folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. You may need to refresh your permalinks by going to Settings > Permalinks and tapping the Save button.

Faq

How do I customize the AMP output for my site?

You can tweak a few things like colours from the AMP Customizer. From the Dashboard, go to Appearance > AMP.

For deeper level customizations, please see the readme at https://github.com/Automattic/amp-wp/blob/master/readme.md

What about ads and shortcodes and such?

Check out https://github.com/Automattic/amp-wp/blob/master/readme.md#handling-media

What about analytics?

Many plugins are adding AMP support already. If you handling analytics yourself, please see https://github.com/Automattic/amp-wp/blob/master/readme.md#analytics

Google Webmaster Tools is reporting validation errors for my site. How do I fix them?

The best place to start is to open a new discussion in the support forum with details on what the specific validation error is.

Why aren't Pages supported yet

A wise green Yoda once said, "Patience you must have, my young padawan." We're working on it :)

Upgrade Notice

0.4

  • Breaking change: The new template has changes to markup, class names, and styles that may not work with existing customizations. If you want to stay on the old template for now, you can use the following code snippet:
if ( function_exists( 'amp_backcompat_use_v03_templates' ) ) {
    amp_backcompat_use_v03_templates();
}

For more details, please see https://wordpress.org/support/topic/v0-4-whats-new-and-possible-breaking-changes/

0.3.1

  • Breaking change: AMP_QUERY_VAR is now defined right before amp_init.
  • Breaking change: class names for elements in the default template were prefixed with amp-wp-. Any styles targeting these classes should be updated.

0.3

  • Breaking change: style.css no longer contains the ` tag. If you have a custom stylesheet, you need to update it to remove the tag.
  • Breaking change: single.php no longer includes the AMP boilerplate styles. They are instead added via the amp_post_template_head hook. If you have a custom template, please remove the boilerplate styles.

Install

composer require meteorgpl-plugin/wp-amp

The vendor’s license checks are intact: activate the plugin in WordPress with a license key bought from the vendor.

License

Declared license: GPL-2.0-or-later. The code is redistributed under the license the vendor declared in the plugin’s own headers. License profile: gpl-full.

Artwork, fonts, media and documents that may be licensed separately are not redistributed; the licensing page explains what is replaced or removed, and the security tab lists it per version. Support and update entitlement come with the license you buy from the vendor.

Send feedback

What works, what does not, what is missing: a few words help.

Only if you would like a reply.

Taken in your browser, without this window. Passwords, what you typed into forms, keys and tokens are left out as grey blocks; you can hide more before sending. We keep screenshots for 90 days.

We store it with the page address, your language, window size, browser and IP address, and your e-mail address if you give one. The IP address and browser are deleted after 90 days. Privacy policy.

All languages