AMP

Descrizione

Questo plugin aggiunge il supporto per il Accelerated Mobile Pages (AMP) Project, che è un’iniziativa open source che mira a fornire contenuti ottimizzati su mobile che possono caricarsi istantaneamente in tutto il mondo.

Con il plugin attivo, tutti gli articoli del tuo sito avranno le versioni compatibili con AMP e dinamicamente generate, accessibili aggiungendo /amp/ alla fine degli URL di ogni articolo. Ad esempio, se l’URL del tuo articolo è http://example.com/2016/01/01/amp-on/, puoi accedere alla versione AMP da http://example.com/2016/01/01/amp-on/amp/. Se non hai attivato i pretty permalinks, puoi fare la stessa cosa aggiungendo ?amp=1, per esempio 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.

Nota #2: questo plugin crea solo contenuto AMP, ma non lo visualizza automaticamente agli utenti quando visitano da un dispositivo mobile. Questo viene gestito dai consumatori AMP come Google Search. Per maggiori dettagli, vedi AMP Project FAQ.

Segui o contribuisci allo sviluppo di questo plugin su https://github.com/Automattic/amp-wp

Screenshot

Installazione

  1. Carica la cartella nella directory /wp-content/plugins/
  2. Attiva il plugin tramite la voce «Plugin» nel menu di WordPress
  3. You may need to refresh your permalinks by going to Settings > Permalinks and tapping the Save button.

FAQ

Installation Instructions
  1. Carica la cartella nella directory /wp-content/plugins/
  2. Attiva il plugin tramite la voce «Plugin» nel menu di WordPress
  3. You may need to refresh your permalinks by going to Settings > Permalinks and tapping the Save button.
Come faccio a personalizzare l’output di AMP per il mio sito?

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 🙂

Recensioni

Optimized pages are working fine!

I created an /amp directory inside my theme’s directory to place customized style.php, single.php, and footer.php all based on the files found inside AMP’s template directory to customize the optimized look (web fonts, colors, sharing links, …). Everything is working just fine!

this is crook

I subscript AMP service in order to accelerate the mobile loading speed(they claim) and I believe it works(stupid). Finally, I subscripted their 3 months’ plan. Initially, they ask me the login and work something in the backend. After a week, suddenly I aware that my website diverted to some irrelevant web page. I lodged a complaint to them and asking for a refund. However, they only partially refund to me.
The service they provided is not helping you to render difficult to you instead but still charging you.
This is AMP, crook

No support

Zu Beginn wars ein gutes Plugin. Und dann startete das Problem mit den Umleitungsfehlern. «To many redirections» und mein Blog konnte nicht mehr aufgerufen werden. Nach mehrmaligen Kontakt-Versuchen mit dem Support, der leider nicht geantwortet hat, musste ich das Plugin deaktivieren.

Lasst die Finger von diesem Plugin.

No Adsense Support & Adds WordPress link

Very dissapointing that Automatic appear not to be updating this plugin.

There is no adsense support so if you start using AMP you will need to edit the code yourself to reintroduce your Adsense code – very unsatisfactory.

Also, the plugin adds a link at the bottom of every page to wordpress.org – WHY?!

Come on Automatic get your act together

Contributori & Sviluppatori

“AMP” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“AMP” sono stati tradotti in 13 lingue: French, Turkish, Japanese, German, Finnish, Brazilian Portuguese, Spanish, Italian, Dutch, Chinese (Taiwan), English (UK), English (Canada), English (Australia). Grazie ai traduttori per i loro contributi.

Traduci “AMP” nella tua lingua.

Interessato allo sviluppo?

Sfoglia il codice oppure iscriviti al log di sviluppo tramite RSS.

Changelog

0.4.2 (2016-10-13)

  • Fix: Prevent validation errors for html tag (h/t Maxime2 and everyone else that reported this error)
  • Fix: Handle variable name conflict that was causing content_max_width to be ignored (h/t mimancillas)
  • Fix: Prevent errors when nodes don’t have attributes (h/t stephenmax)
  • Fix: Back-compat for 4.5 (add sanitize_hex_color function, h/t xotihcan)
  • Fix: Handle gif featured images (h/t protocolil)
  • Documentation updates (props troyxmccall)

0.4.1 (2016-10-10)

  • Fix: Don’t fire the_content for featured image output
  • Fix: Don’t show comment link when disabled and no comments on post (h/t neotrope)
  • Fix: strip !important from inline styles (h/t compointdesigner and enriccardonagmailcom)

0.4 (2016-10-06)

  • New template: spiffy, shiny, and has the fresh theme smell (props allancole and the Automattic Theme Team).
  • Warning: The template update has potential breaking changes. Please see https://wordpress.org/support/topic/v0-4-whats-new-and-possible-breaking-changes/
  • AMP Customizer: Pick your colours and make the template your own (props DrewAPicture and 10up)
  • Fix: support for inline styles (props coreymckrill).
  • Fix: no more fatal errors when tags not supported by post type (props david-binda)
  • Fix: no more unnecessary <br> tags.
  • Fix: sanitize children of removed nodes (like empty <a> tags) (props Maxime2).
  • Fix: no more broken YouTube URLs with multiple ?s.
  • Fix: properly handle tel and sms schemes (h/t soundstrategies).
  • Fix: remove amp endpoint on deactivate.
  • New filter: amp_pre_get_permalink if you want a completely custom AMP permalink.

0.3.3 (Aug 18, 2016)

  • Handle many more validation errors (props bcampeau and alleyinteractive).
  • New filter: amp_post_template_dir (props mustafauysal).
  • New template: Nav bar is now it’s own template part (props jdevalk).
  • Better ratio for YouTube embeds.
  • Fix: better timezone handling (props rinatkhaziev).
  • Fix: better handling of non-int dimensions (like 100%).
  • Fix: better handling of empty dimensions.
  • Fix: autoplay is a bool-like value.
  • Fix: breakage when using the query_string hook (h/t mkuplens).
  • Fix: don’t break really large Twitter IDs.
  • Fix: don’t break Instagram shortcodes when using URLs with querystrings.
  • Readme improvements (props nickjohnford, sotayamashita)

0.3.2 (Mar 4, 2016)

  • Supporto di Jetpack Stats.
  • Better version of Merriweather and use system fonts for sans-serif (props mattmiklic).
  • Move font to stylesheet so it can be more easily overridden (props mattmiklic).
  • Fix: Template loading issues on Windows. (Thanks to everyone who reported this, especially w33zy for pointing out the validate_file issue.)
  • Fix: don’t run AMP on post comment feeds (props kraftbj).
  • Fix: un-break pagination when using a static home page with multiple pages.
  • Fix: force amp-iframe to use https to validate correctly (props mister-ben).
  • Fix: validation for target and video/audio attributes.
  • Fix: clipped images in galleries (thanks tobaco).

0.3.1 (Feb 24, 2016)

  • Allow custom query var (props vaurdan).
  • Fix AMP URLs for non-pretty permalinks (props rakuishi).
  • Fix for password-protected posts.
  • Fix dimension extraction for schema-less or relative image URLs.
  • Better fallback for images with no dimensions.
  • Validation fixes for a tags (props kraftbj).
  • Updated AMP boilerplate.
  • Allow on tags for elements (props Steven Evatt).
  • Prefixed class names.

0.3 (Feb 18, 2016)

  • Fetch dimensions for hotlinked images.
  • Add amp-facebook support.
  • Add some new actions and filters (e.g. amp_init).
  • Fix validation errors for [gallery] shortcodes.
  • Fix issues with path validation on Windows.
  • Fix issues with really squeezed layout.
  • 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.

0.2 (Jan 28, 2016)

  • Lots and lots and lots of compatibility and validation fixes
  • Lots and lots and lots of improvements for customization

0.1

  • Initial version