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.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/milindmore22/amp-carousel-img-attribute-remover/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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