[WordPress] 外掛分享: Awesome Color Palettes

首頁外掛目錄 › Awesome Color Palettes
WordPress 外掛 Awesome Color Palettes 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
1814 天前
最後更新
問題解決
WordPress 3.5+ v1.0 上架:2014-07-23

內容簡介

終於有了一種在網站上展示色彩調色板的酷炫方式。這個微型插件讓您在網頁上展示色彩調色板的酷炫方式。

以下是示例:
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%; }

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Awesome Color Palettes」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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%; }

延伸相關外掛

文章
Filter
Apply Filters
Mastodon