AI助手支持GPT4.0
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.
这个小巧的小插件为您提供了一种在页面上显示调色板的好方法。 p>
Example of what it looks like:
外观示例:
http://halgatewood.com/palettes/
http://halgatewood.com/palettes/ p>
Use the shortcode to and pass in a list of colors:
使用简码并传入颜色列表: p>
[awe_palette colors="434858,5886c5,#f2674a,c6006d"] [awe_palette colors =“ 434858,5886c5,#f2674a,c6006d”] code> pre>Or you can call it directly with PHP in your theme:或者您可以在主题中使用PHP直接调用它: p> <?php awesome_color_palettes(array('#cccccc','efefef','666')); ?>?> code> pre>You can include the # or not, it doesn’t care what you do.您可以包含#,也可以不包含#,这与您的工作无关。 p>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 code>文件并将其放在主题文件夹中,您可以根据需要定制调色板。 p>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文件中即可。 p>.awe-color-palette.count-20 .color { width: 5%; .awe-color-palette.count-20 .color {width:5%; }} code> pre>
[awe_palette colors =“ 434858,5886c5,#f2674a,c6006d”]
code> pre>
Or you can call it directly with PHP in your theme:
或者您可以在主题中使用PHP直接调用它: p>
<?php awesome_color_palettes(array('#cccccc','efefef','666')); ?>?> code> pre>You can include the # or not, it doesn’t care what you do.您可以包含#,也可以不包含#,这与您的工作无关。 p>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 code>文件并将其放在主题文件夹中,您可以根据需要定制调色板。 p>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文件中即可。 p>.awe-color-palette.count-20 .color { width: 5%; .awe-color-palette.count-20 .color {width:5%; }} code> pre>
<?php awesome_color_palettes(array('#cccccc','efefef','666')); ?>?>
?>
?>
You can include the # or not, it doesn’t care what you do.
您可以包含#,也可以不包含#,这与您的工作无关。 p>
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
创建一个 awesome-color-palette.php code>文件并将其放在主题文件夹中,您可以根据需要定制调色板。 p>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文件中即可。 p>.awe-color-palette.count-20 .color { width: 5%; .awe-color-palette.count-20 .color {width:5%; }} code> pre>
awesome-color-palette.php code>文件并将其放在主题文件夹中,您可以根据需要定制调色板。 p>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文件中即可。 p>.awe-color-palette.count-20 .color { width: 5%; .awe-color-palette.count-20 .color {width:5%; }} code> pre>
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文件中即可。 p>
.awe-color-palette.count-20 .color { width: 5%; .awe-color-palette.count-20 .color {width:5%; }} code> pre>
.awe-color-palette.count-20 .color {width:5%; }}
}
/wp-content/plugins/
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Use shortcode mention in the main page to display the goods在主页上使用简码提及来显示商品 li>
ol>
原文出处:http://www.sanshu.cn/a/3574.html
群主管理都是支付大佬