WP Manifestindependent plugin directory
manifest / media / amp-carousel-img-attribute-remover

AMP Carousel object-fit property remover.

Removes object-fit="cover" attribute added to amp-carousel images.

by Milind, Google · github.com/milindmore22/amp-carousel-img-attribute-remover · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/milindmore22/amp-carousel-img-attribute-remover/archive/refs/heads/main.zip

AMP Carousel Image Attribute remover

This plugin removes object-fit:cover style from amp-carousel slides.

Notes

  • Plugin should work with both shortcode embed and Block.
  • If it did not work with shortcode embed remove comment from this file
  • If you wanted to add another style/ property like object-fit:contain remove comment this line.

Plugin Structure

.
├── sanitizers
│   ├── class-sanitizer.php
│   └── class-embed-sanitizer.php
└── amp-carousel-img-attribute-remover.php

Sanitizers

The plugin uses amp_content_sanitizers filter to add custom sanitizers.

Need a feature in plugin?

Feel free to contact us on AMP support forum