Mô tả
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.
Cài đặt
- 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.
Hỏi đáp
-
Why should I disable the `auto` value in the `sizes` attribute?
-
Disabling the
autovalue gives you full control over thesizesattribute 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
autokeyword to thesizesattribute. You can still define customsizesattributes 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.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Disable Auto-Sizes” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Disable Auto-Sizes” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
1.0
- Initial release.