
內容簡介
終於有了一種在網站上展示色彩調色板的酷炫方式。這個微型插件讓您在網頁上展示色彩調色板的酷炫方式。
以下是示例:
http://halgatewood.com/palettes/
使用捷徑並傳入一個色彩列表:
[awe_palette colors="434858,5886c5,#f2674a,c6006d"]
或在您的佈景主題中直接調用:
<?php awesome_color_palettes( array('#cccccc', 'efefef', '666') ); ?>
您可以包含#或不包含#,這對它來說沒有影響。
等等,還有更多。創建一個awesome-color-palette.php文件並將其放在主題文件夾中,可以為您需要的任何內容自定義調色板。
它可以處理10種顏色。要添加更多,只需創建以下類似的CSS並將其添加到主題中的style.css文件中。
. awe-color-palette.count-20 .color { width: 5%; }
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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/
Use the shortcode to and pass in a list of colors:
[awe_palette colors="434858,5886c5,#f2674a,c6006d"]
Or you can call it directly with PHP in your theme:
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.
It can handle 10 colors out of the box. To add more, simply create some CSS like below and add it to your style.css file in your theme.
.awe-color-palette.count-20 .color { width: 5%; }
