
內容簡介
Teduca Palettes 可以使用簡單的短代碼來展示網站上一組顏色,讓您在網站上展示多種色彩。
此外掛並不限制您使用多少種顏色,所顯示的顏色大小始終相同,您在短代碼中使用的第一種顏色可以用來突顯那種顏色。
當您懸停在顏色上時,顏色會展開以顯示十六進位的顏色,之後您可以點擊顏色文本將顏色十六進位數值複製到剪貼簿中。
使用短代碼插入您的顏色組:
[palette colors="CDF0EA, F9F9F9, F6C6EA, C490E4" title="獨角獸" height="400px"]
或者您可以直接在主題中使用 PHP 調用:
<?php teduca_palettes( array('#CDF0EA', 'F9F9F9', '#F6C6EA', 'C490E4'), "Unicorn", "400px" ); ?>
您可以使用帶 # 或者不帶 #,三位數或六位數的顏色代碼,都可以正常使用。
選項:
高度:如果您沒有輸入任何內容,預設大小為 250px
標題:您可以使用自己的標題或留空。
顏色:您可以使用 1 個或多個顏色,如果您的高度太小無法顯示顏色,可以使用高度選項增加高度。
寬度:預設情況下此選項為 100%。
外掛標籤
開發者團隊
原文外掛簡介
Teduca Palettes help you to showcase a group on colors on your website using a simple shortcode.
The plugin don\’t have limits about how many colors you can use, the displayed colors always have the same size, the first color you use on the shortcode can be used to feature that color a little more than the rest.
The colors expand when you hover the color to display the hex color, after that you can click on the color text to copy the color hex to your clipboard.
Use the shortcode to insert your group
[palette colors="CDF0EA, F9F9F9, F6C6EA, C490E4" title="Unicorn" height="400px"]
Or you can call it directly with PHP in your theme
You can use the shortcode with # or without, 3 or 6 color code, doesn\’t matter, the action still can handle it.
Options:
Height: The default size if you don\’t input anything is 250px
Title: You can use you own or leave it empty.
Colors: You can use from 1 to as many you want, if your height is too small to display the colors you can increase it using the height option.
Width: By default this option is 100%.
