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

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 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 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, 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” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Remove CSS link IDs”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.0

  • First release