AMP
PluginEnable Accelerated Mobile Pages (AMP) on your WordPress site.
- 0 stars
- 0 watching
- 0 downloads
- GPL-2.0-or-later
Versions 1
-
0.4.2 Latest
Fix: Prevent validation errors for html tag (h/t Maxime2 and everyone else that reported this error) Release notes
Show 8 versions not available yet
Releases named in the vendor’s changelog or on WordPress.org that the repository does not have yet.
-
0.4.1 Not available yet
Fix: Don't fire thecontent for featured image output
-
0.4 Not available yet
New template: spiffy, shiny, and has the fresh theme smell (props allancole and the Automattic Theme Team).
-
0.3.3 Not available yet
Handle many more validation errors (props bcampeau and alleyinteractive).
-
0.3.2 Not available yet
Jetpack Stats support.
-
0.3.1 Not available yet
Allow custom query var (props vaurdan).
-
0.3 Not available yet
Fetch dimensions for hotlinked images.
-
0.2 Not available yet
Lots and lots and lots of compatibility and validation fixes
-
0.1 Not available yet Release date not stated
Initial version
Readme
GPL-2.0-or-laterAMP
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
- Upload the folder to the
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- You may need to refresh your permalinks by going to
Settings > Permalinksand tapping theSavebutton.
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_VARis now defined right beforeamp_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.cssno longer contains the ` tag. If you have a custom stylesheet, you need to update it to remove the tag. - Breaking change:
single.phpno longer includes the AMP boilerplate styles. They are instead added via theamp_post_template_headhook. 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.