Title: Remove CSS link IDs
Author: Primoz Cigler
Published: <strong>May 10, 2014</strong>
Last modified: December 31, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Remove CSS link IDs

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

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

 * [Details](https://pcd.wordpress.org/plugins/remove-css-link-ids/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/remove-css-link-ids/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/remove-css-link-ids/#installation)
 * [Development](https://pcd.wordpress.org/plugins/remove-css-link-ids/#developers)

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

## Description

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.

## Installation

 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

## FAQ

  A question that someone might have?

No questions asked yet.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Remove CSS link IDs” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Remove CSS link IDs” into your language.](https://translate.wordpress.org/projects/wp-plugins/remove-css-link-ids)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/remove-css-link-ids/),
check out the [SVN repository](https://plugins.svn.wordpress.org/remove-css-link-ids/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/remove-css-link-ids/)
by [RSS](https://plugins.trac.wordpress.org/log/remove-css-link-ids/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First release

## Meta

 *  Version **1.0.1**
 *  Last updated **11 years ago**
 *  Active installations **30+**
 *  WordPress version ** 3.8 or higher **
 *  Tested up to **3.9.40**
 *  Language
 * [English (US)](https://wordpress.org/plugins/remove-css-link-ids/)
 * Tags
 * [attributes](https://pcd.wordpress.org/plugins/tags/attributes/)[css](https://pcd.wordpress.org/plugins/tags/css/)
   [enqueue](https://pcd.wordpress.org/plugins/tags/enqueue/)[id](https://pcd.wordpress.org/plugins/tags/id/)
   [mod_pagespeed](https://pcd.wordpress.org/plugins/tags/mod_pagespeed/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/remove-css-link-ids/advanced/)

## Ratings

 5 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/remove-css-link-ids/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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