[wordpress插件] Combine CSS结合CSS

wordpress 插件 文章 2020-03-28 01:30 426 0 全屏看文

AI助手支持GPT4.0

评分
48
描述

WordPress plugin that combines, minifies, and compresses CSS files.

结合,缩小和压缩CSS文件的WordPress插件。

The CSS files that this plugin combines and minifies must be enqueued by using wp_enqueue_style.

必须使用wp_enqueue_style排队此插件组合并缩小的CSS文件。

The plugin combines and minifies CSS and writes the output into files in the uploads directory and makes attempts to correct paths for images and fonts.

该插件结合并缩小了CSS,并将输出写入到uploads目录中的文件中,并尝试更正图像和字体的路径。

Also see the companion plugin, Combine JS.

另请参阅配套插件组合JS

Features include:

功能包括:

    • option to change the CSS domain if a CDN is used
    • 如果使用CDN则更改CSS域的选项

    • option to change how often CSS files get refreshed
    • 更改CSS文件刷新频率的选项

    • option to exclude certain CSS files from combining
    • 从某些组合中排除某些CSS文件的选项

    • option to turn on/off gzip compression
    • 打开/关闭gzip压缩的选项

    • option to include Gravity Forms CSS (this is due to Gravity Forms not using wp_enqueue_style)
    • 包括Gravity Forms CSS的选项(这是由于Gravity Forms不使用wp_enqueue_style)

    • option to turn on debugging
    • 打开调试选项

安装步骤

    1. Upload combine-css folder to the /wp-content/plugins/ directory
    2. combine-css 文件夹上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Go to Settings -> Combine CSS, update settings, and select “Save Changes” button
    6. 转到设置->组合CSS,更新设置,然后选择“保存更改”按钮

下载地址
https://downloads.wordpress.org/plugin/combine-css.2.0.zip
-EOF-

AI助手支持GPT4.0