AMP

Beskrivning

The AMP Project is an open-source initiative aiming to make the web better for all. AMP enables web experiences that are consistently fast, beautiful and high-performing across distribution platforms. The official AMP plugin for WordPress supports fully integrated AMP publishing for WordPress sites, with robust capabilities and granular publisher controls.

Features and capabilities provided by the plugin include:

  • AMP-first Experiences: enabling full-site AMP experiences without sacrificing the flexibility of the platform or the fidelity of content.
  • Core Theme Support: enabling AMP compatibility for all core themes, from Twenty Ten all the way through Twenty Nineteen.
  • Compatibility Tool: when automatic conversion of markup to AMP is not possible, debug AMP validation errors with detailed information including the invalid markup and the specific components responsible on site (e.g theme, plugin, embed); validation errors are shown contextually with their respective blocks in the editor.
  • CSS Tree Shaking: automatically remove the majority of unused CSS to bring the total under AMP’s 50KB limit; when the total after tree shaking is still over this limit, prioritization is used so that the all-important theme stylesheet important is retained, leaving less important ones to be excluded (e.g. print styles).
  • AMP Stories (beta): the AMP plugin enables the creation, editing, and publishing of AMP Stories in WordPress; leverage the magic of storytelling the WordPress way!

The plugin can be configured to follow one of three different template modes: Standard, Transitional, and Reader. In Standard mode you use AMP as the framework for your site, and there need not be any separate AMP and non-AMP versions. When configured to operate in Reader and Transitional modes, a given page will have a canonical URL as well as a corresponding (paired) AMP URL. The AMP plugin is not serving as a mobile theme; it does not redirect mobile devices to the AMP version. Instead, the AMP version is served to mobile visitors when they find the content on platforms such as Twitter, Pinterest, Google Search, and others. Reader mode only supports serving AMP for singular posts, pages, and other post types, whereas Standard and Transitional mode support serving the entire site as AMP.

With the official AMP plugin for WordPress, the WordPress ecosystem is provided with the capabilities and tools it needs to build world-class AMP experiences without deviating from its standard, flexible, and well-known content creation workflow.

Getting Started

To learn more about the plugin and start leveraging its capabilities to power your AMP content creation workflow check the official AMP plugin product site.

If you are a developer, we encourage you to follow along or contribute to the development of this plugin on GitHub.

Skärmdumpar

  • Create great web experiences via AMP-powered websites or visually rich, engaging stories.
  • Many themes can be served as AMP without any changes; the default experience is as if JavaScript is turned off in the browser since scripts are removed.
  • In the website experience, theme support enables you to reuse the active theme's templates and stylesheets; all WordPress features (menus, widgets, comments) are available in AMP.
  • All core themes are supported, but many themes can be served as AMP with minimal changes, Otherwise, behavior is often as if JavaScript is turned off in the browser since scripts are removed.
  • Make the entire site available in AMP or pick specific post types and templates; you can also opt-out on per-post basis.
  • Plugin checks for AMP validity and will indicate when either: no issues are found, new issues need moderation, or issues block AMP from being served.
  • The editor will surface validation issues during content authoring. The specific blocks with validation errors are indicated.
  • Validated URLs include the list of validation errors encountered, giving control over whether sanitization for a validation error is accepted or rejected.
  • Styles added by themes and plugins are automatically concatenated, minified, and tree-shaken to try to keep the total under 50KB of inline CSS.
  • A WP-CLI command is provided to check the URLs on a site for AMP validity. Results are available in the admin for inspection.
  • Styles added by themes and plugins are automatically concatenated, minified, and tree-shaken to try to keep the total under 50KB of inline CSS.
  • A WP-CLI command is provided to check the URLs on a site for AMP validity. Results are available in the admin for inspection.

Block

Detta tillägg erbjuder 4 block.

amp/amp-story-post-author
amp/amp-story-post-date
amp/amp-story-post-title
amp/amp-latest-stories

Installation

  1. Upload the folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ’Plugins’ menu in WordPress.
  3. If you currently use older versions of the plugin in Reader mode, it is strongly encouraged to migrate to Transitional or Standard mode. Depending on your theme/plugins, some development work may be required.

Recensioner

cannot deactivate plugin

Attempted to deactivate the plugin from Installed Plugins menu and it just hangs. Have to go through the backend and forcibly rip it out.

The Perfect AMP

I have installed this plugin on my site, to be honest I have had a few technical issues but James has been fantastic and provides support and direction to address the issues. I would highly recommend this plugin.

Doesn’t Work

This plugin messed up my entire website. When this application is activated, it makes a time travel back to the 90s. Do yourself a favor and look for something else if you want to do a mobile optimization. Spec: WP 5.2.1 Theme: Highlight PRO

I am sick and tired

I would give 2.5 stars for the features, as they actually work in the real world. I have to give 1, because it is the 3rd time everything broke after an update (I am with this plugin since it was just a "baby" ). I get the feeling that the users' voice cannot be heard by the ( two? ) companies behind this plugin. For the coders interested, this time I got all my AMP pages invalidated and out of google index 🙁 I believe the problem started past version 1.1.0 but I cannot pinpoint the exact version. The thing is that the plugin timeouts when trying to validate page/ fix erros and the fix (suggested for 0.8 version) doesn't help either. For smaller projects I tried in the pasts AMP for WP and Better AMP, I guess I must look this way for our main project too. PS I used to believe, it's from Automattic, of course it IS GOOD.
Läs alla 177 betyg

Bidragsgivare och utvecklare

”AMP” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”AMP” har översatts till 18 språk. Tack till översättarna för deras bidrag.

Översätt ”AMP” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

For the plugin’s changelog, please see the Releases page on GitHub.