[wordpress插件] Awesome Color Palettes很棒的调色板

wordpress 插件 文章 2020-02-26 19:20 539 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Finally a cool way to display color palettes on your site.

最后是在您的网站上显示调色板的一种很酷的方法。

This tiny little plugin gives you a cool way to display color palette on your pages.

这个小巧的小插件为您提供了一种在页面上显示调色板的好方法。

Example of what it looks like:

外观示例:

http://halgatewood.com/palettes/

http://halgatewood.com/palettes/

Use the shortcode to and pass in a list of colors:

使用简码并传入颜色列表:

[awe_palette colors="434858,5886c5,#f2674a,c6006d"]

  [awe_palette colors =“ 434858,5886c5,#f2674a,c6006d”]

Or you can call it directly with PHP in your theme:

或者您可以在主题中使用PHP直接调用它:

  <?php awesome_color_palettes(array('#cccccc','efefef','666')); 

?>

?>

You can include the # or not, it doesn’t care what you do.

您可以包含#,也可以不包含#,这与您的工作无关。

Wait, there’s more.

等等,还有更多。

Create an awesome-color-palette.php file and put it in your theme folder and you can custom palettes for whatever you need.

创建一个 awesome-color-palette.php 文件并将其放在主题文件夹中,您可以根据需要定制调色板。

It can handle 10 colors out of the box.

开箱即用可以处理10种颜色。

To add more, simply create some CSS like below and add it to your style.css file in your theme.

要添加更多内容,只需创建如下所示的CSS,然后将其添加到主题中的style.css文件中即可。

.awe-color-palette.count-20 .color { width: 5%;

  .awe-color-palette.count-20 .color {width:5%; 

}

}

安装步骤

    1. Add plugin to the /wp-content/plugins/ directory
    2. 将插件添加到 / wp-content / plugins / 目录

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

    5. Use shortcode mention in the main page to display the goods
    6. 在主页上使用简码提及来显示商品

下载地址
https://downloads.wordpress.org/plugin/awesome-color-palettes.zip
-EOF-

AI助手支持GPT4.0