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

wordpress 插件 文章 2020-02-26 19:20 600 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Disable 000webhost Branding禁用000webhost品牌
[wordpress插件] Singsys -Awesome GallerySingsys-超赞图库
[wordpress插件] LB Back To TopLB回到顶部
[wordpress插件] Cresta Image In Widget小部件中的Cresta图像
[wordpress插件] Byte&#039;s PHP Code Widget字节的PHP代码小部件
随便看看
怎么可以获得图片的大小? (不是尺寸!) 714
微信小商城好用吗? 664
通过web-view嵌入一个h5页面,页面调用了谷歌地图,但小程序里不显示谷歌地图,请问怎么回事? 1173
用搜狗浏览器打开微信开放平台里面所有的链接都点击不了? 1060
公众号? 605
有没有考虑开发下会员功能? 623
为什么安卓版的微信,保存视频这么麻烦! 608
关于微信小游戏弹出微信公众号二维码? 962
微信小商店首页路径什么时候能提供呢? 922
公众号文章内容为什么不能提到习近平总书记? 626