Disable Auto-Sizes Icon

Disable Auto-Sizes

By Mukesh Panchal

Active Installs

50+

Last Updated

November 27, 2024

First Released

November 27, 2024

Download History (Last one month)


Contributors

The “Disable Auto-Sizes” plugin prevents WordPress from adding the auto keyword to the sizes attribute for images. This ensures full control over the sizes attribute and is useful for advanced customization or debugging.

Features

  • Disables the automatic addition of the auto value in the sizes attribute for <img> tags.
  • Lightweight and easy to use.
  • Useful for developers and advanced users managing responsive image behaviors.
  1. Download the plugin zip file and extract it.
  2. Upload the extracted folder to the /wp-content/plugins/ directory on your WordPress site.
  3. Log in to your WordPress admin dashboard.
  4. Navigate to Plugins > Installed Plugins.
  5. Activate the “Disable Auto-Sizes” plugin.
Why should I disable the `auto` value in the `sizes` attribute?

Disabling the auto value gives you full control over the sizes attribute for images. This can help in debugging or custom responsive image implementations.

Does this affect image rendering in any way?

No, it simply prevents WordPress from adding the auto keyword to the sizes attribute. You can still define custom sizes attributes as needed.

Can this plugin be used with all WordPress themes?

Yes, it works with any theme as long as your theme supports WordPress’s native responsive image functionality.

Changelog

1.0

  • Initial release.

Available Versions

Version Download Type
1.0 Download Stable
Development Download Trunk

Plugin Info

  • Version: 1.0
  • Last Updated: November 27, 2024
  • Active Installs: 50+
  • WordPress Version: 6.7.1 or higher
  • Tested up to: 6.7.10
  • PHP Version: 7.2.24 or higher
  • Tags:    
    auto-sizes performance responsive-images sizes-attribute

Ratings


0.0 out of 5 stars. (0 reviews)

See all reviews
Scroll to Top