PAM

Descriere

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. AMP formerly stood for “Accelerated Mobile Pages”, but now works completely across desktop and mobile. The official AMP plugin for WordPress supports fully integrated AMP publishing for WordPress sites, with robust capabilities and granular publisher controls.

Funcționalitățile și capabilitățile oferite de modul includ:

  • 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 Twenty.
  • 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.

Capturi ecran

  • Create great web experiences via PAM-powered websites or visually rich, engaging stories.
  • Story editor enables creation of pages in a horizontal, page-based interface, with background media, with blocks that can be dragged, rotated, and animated.
  • 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 PAM.
  • All core themes are supported, and many themes can be served as PAM with minimal changes, Otherwise, behavior is often as if JavaScript is turned off in the browser since scripts are removed.
  • Reader mode templates are still available, but they are differ from the active theme.
  • Switch from Reader mode to Transitional or Standard mode in PAM settings screen.
  • Standard mode: Using PAM as the framework for your site, not having to maintain an PAM and non-PAM version. Mobile and desktop users get same experience.
  • Transitional mode: A path to making your site fully PAM-compatible, with tools to assist with debugging validation issues along the way.
  • Make the entire site available in PAM or pick specific post types and templates; you can also opt-out on per-post basis.
  • Plugin checks for PAM validity and will indicate when: no issues are found, new issues need review, or issues block PAM from being served.
  • The editor will surface validation issues during content authoring. The specific blocks with validation errors are indicated.
  • Each Validated URL shows the list of validation errors encountered, giving control over whether invalid markup is removed or kept. Keeping invalid markup disables PAM.
  • Each validation error provides a stack trace to identify which code is responsible for the invalid markup, whether a theme, plugin, embed, content block, and so on.
  • 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 PAM validity. Results are available in the admin for inspection.

Blocuri

Acest modul oferă 5 blocuri.

amp/amp-story-post-author
AMP
amp/amp-story-post-date
AMP
amp/amp-story-post-title
AMP
amp/amp-latest-stories
AMP
amp/amp-story-page-attachment
AMP

Instalare

  1. Upload the folder to the /wp-content/plugins/ directory.
  2. Activează modulul în meniul „Module” din 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.

Verificări

3 ianuarie 2020
A must-have plugin for my websites. This plugin has taken care of everything one needs for going AMP with existing themes.
2 ianuarie 2020
I really wanted this to work. It ran the pages really fast. I think Google pads the data for how fast to make it seem better than it is. The real problem is that it is super difficult to get auto ads to work with this plugin. I spent hours with different plugins, options, following help guides and not one actually was able to display ads from Google adsense. Turn the plugin off and ads are back. As much as I want lighter and nimbler the site has to make money. This plugin prevented me from doing that.
16 decembrie 2019
There is not much one needs to do while using the official AMP plugin. You need to install and activate the plugin. It does the job for you! The best thing about the plugin is the outstanding support you can get on the support forum. James Osborne was very helpful in many of the topics I created. I would definitely recommend this plugin if you want to implement AMP on your website.
12 decembrie 2019
Great Plugin and Excellent Support due to which will be able to convert my site in AMP very Soon !! Cheers to Support team !!
12 decembrie 2019
Plugin's contributors provide good support and provided solution for my question in support forum regarding webp images support. Plugin needs improvements like support for <picture> element which is introduced in HTML5. I will request plugin contributors to add support for picture element ASAP.
Citește toate cele 199 de recenzii

Contributori și dezvoltatori

„PAM” este un software open-source. La acest modul au contribuit următoarele persoane.

Contributori

„PAM” a fost tradus în 20 de locale. Mulțumim traducătorilor pentru contribuția lor.

Tradu „PAM” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări

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