[wordpress插件] Child Styles儿童风格

wordpress 插件 文章 2020-03-22 23:50 450 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin delivers a different stylesheet in the header of each page type, which allows the site administrator to manage their styles even more original, but also easier.

此插件在每种页面类型的标题中提供了不同的样式表,这使站点管理员可以更原始,更轻松地管理其样式。

Child Styles is particularly suitable for large sites, such as those managed with BuddyPress, or supporting many graphic plugins, the other advantage is speed up page loading by reducing considerably the size of each style sheet.

子样式特别适用于大型站点,例如由BuddyPress管理的站点,或支持许多图形插件的站点,另一个优点是通过显着减小每个样式表的大小来加快页面加载速度。

The gain for each style sheet can be up to three quarters of the original file size!

每个样式表的增益最多可达原始文件大小的四分之三!

安装步骤

Beware!

当心!

Make sure you first have sufficient rights on the CSS file of your theme, and if it is called style.css.

确保您首先对主题的CSS文件具有足够的权限,如果该文件名为 style.css

Otherwise, you must copy it 6 or 16 times (if you use BuddyPress) in the child-styles by renaming them according to the $files array, defined in the PHP file plugin.

否则,必须根据PHP文件插件中定义的$ files数组重命名它们,以子样式将其复制6或16次(如果使用BuddyPress)。

You may also edit each stylesheet by removing unused CSS lines.

您也可以通过删除未使用的CSS行来编辑每个样式表。

Important !

重要!

Assurez-vous d’abord de posséder les droits suffisants sur la feuille de style de votre thème, et qu’elle se nomme style.css.

首先,请确保您对主题的样式表具有足够的权限,并将其称为 style.css

Sinon, vous devrez la copier 6 ou 16 fois (si vous utilisez BuddyPress) dans le dossier child-styles en la renommant selon le tableau $files, défini dans le fichier PHP de l’extension.

否则,您将必须在 child-styles 文件夹中将其复制6或16次(如果使用的是BuddyPress),并根据扩展名的PHP文件中定义的$ files表将其重命名。

Vous pouvez éditer ensuite chaque feuille de style en éliminant les lignes de code CSS superflues.

然后,您可以通过消除不必要的CSS代码行来编辑每个样式表。

下载地址
https://downloads.wordpress.org/plugin/child-styles.zip
-EOF-

AI助手支持GPT4.0