Title: Disable Auto-Sizes
Author: Mukesh Panchal
Published: <strong>2024 年 11 月 27 日</strong>
Last modified: 2024 年 11 月 27 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/disable-auto-sizes/assets/icon.svg?rev=3198129)

# Disable Auto-Sizes

 作者：[Mukesh Panchal](https://profiles.wordpress.org/mukesh27/)

[下载](https://downloads.wordpress.org/plugin/disable-auto-sizes.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/disable-auto-sizes/#description)
 * [评价](https://cn.wordpress.org/plugins/disable-auto-sizes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/disable-auto-sizes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/disable-auto-sizes/#developers)

 [支持](https://wordpress.org/support/plugin/disable-auto-sizes/)

## 描述

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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Disable Auto-Sizes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mukesh Panchal ](https://profiles.wordpress.org/mukesh27/)

[帮助将「Disable Auto-Sizes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/disable-auto-sizes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/disable-auto-sizes/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/disable-auto-sizes/)，或通过[RSS](https://plugins.trac.wordpress.org/log/disable-auto-sizes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/disable-auto-sizes/)。

## 更新日志

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **60+**
 *  WordPress 版本 ** 6.7.1 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.2.24 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/disable-auto-sizes/)
 * 标签
 * [auto-sizes](https://cn.wordpress.org/plugins/tags/auto-sizes/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [responsive images](https://cn.wordpress.org/plugins/tags/responsive-images/)
 *  [高级视图](https://cn.wordpress.org/plugins/disable-auto-sizes/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/disable-auto-sizes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/disable-auto-sizes/reviews/)

## 贡献者

 *   [ Mukesh Panchal ](https://profiles.wordpress.org/mukesh27/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/disable-auto-sizes/)