Title: Remove CSS link IDs
Author: Primoz Cigler
Published: <strong>2014 年 5 月 10 日</strong>
Last modified: 2014 年 12 月 31 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/remove-css-link-ids.svg)

# Remove CSS link IDs

 作者：[Primoz Cigler](https://profiles.wordpress.org/cyman/)

[下载](https://downloads.wordpress.org/plugin/remove-css-link-ids.1.0.1.zip)

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

 [支持](https://wordpress.org/support/plugin/remove-css-link-ids/)

## 描述

This simple plugin hooks to the `wp_enqueue_scripts` and removed the `id='<handle
of the css file>-css'` attribute. Most of the time you don’t need these IDs anyway.

I am using the [mod_pagespeed](https://developers.google.com/speed/pagespeed/module)
module on my server and the `combine_css` filter doesn’t work if the `<link>` tags
have ID attributes. So based on [this blog post](https://blog.codecentric.de/en/2011/10/wordpress-and-mod_pagespeed-why-combine_css-does-not-work/)
I created a very very simple (basically one-liner) plugin that removes the ID attribute
using regex.

There is also a very simple unit test for it, created using wp-cli: `wp scaffod 
plugin ...`.

Enjoy the speedy sites! 🙂

Do you want to contribute? Great! Please fork [this repository](https://github.com/primozcigler/remove-css-ids),
make the changes and create a pull request.

## 安装

 1. Unzip `remove-css-link-ids.zip` and upload unzipped folder to the `/wp-content/
    plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  A question that someone might have?

No questions asked yet.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Remove CSS link IDs」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Primoz Cigler ](https://profiles.wordpress.org/cyman/)

[帮助将「Remove CSS link IDs」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/remove-css-link-ids)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * First release

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/remove-css-link-ids/)
 * 标签
 * [attributes](https://cn.wordpress.org/plugins/tags/attributes/)[css](https://cn.wordpress.org/plugins/tags/css/)
   [enqueue](https://cn.wordpress.org/plugins/tags/enqueue/)[id](https://cn.wordpress.org/plugins/tags/id/)
   [mod_pagespeed](https://cn.wordpress.org/plugins/tags/mod_pagespeed/)
 *  [高级视图](https://cn.wordpress.org/plugins/remove-css-link-ids/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/)

## 贡献者

 *   [ Primoz Cigler ](https://profiles.wordpress.org/cyman/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/remove-css-link-ids/)