Disable Auto-Sizes
Disable Auto-Sizes
Description
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
autovalue in thesizesattribute for<img>tags. - Lightweight and easy to use.
- Useful for developers and advanced users managing responsive image behaviors.
Installation
- Download the plugin zip file and extract it.
- Upload the extracted folder to the
/wp-content/plugins/directory on your WordPress site. - Log in to your WordPress admin dashboard.
- Navigate to Plugins > Installed Plugins.
- Activate the “Disable Auto-Sizes” plugin.
Faq
Disabling the auto value gives you full control over the sizes attribute for images. This can help in debugging or custom responsive image implementations.
No, it simply prevents WordPress from adding the auto keyword to the sizes attribute. You can still define custom sizes attributes as needed.
Yes, it works with any theme as long as your theme supports WordPress’s native responsive image functionality.
Reviews
Changelog
1.0
- Initial release.