聚合热搜API对接子比,目前整合13个热榜,均为本地api

美化教程12个月前发布 忆余函
1,265 0 0
美化教程

api文件下载地址:https://cunshao.lanzoup.com/i5W5R0ztbeje

首页版:

将index.php里的内容复制到/wp-content/themes/zibll/index.php里你想要放置的地方

hotlist文件夹放到/wp-content/themes/zibll 内即可

页面版:

将HotList.php、hotlist放到/wp-content/themes/zibll/pages 内

然后前往wp后台 – 页面 – 新建页面 模板选择“热搜榜单页面”

目前已整合13个热搜榜单 如有Bug请联系开发者修复

最后

需要在 子比主题设置 – 全局&功能 – 自定义代码 – 自定义CSS样式 内添加以下CSS代码

 

[hidecontent type=”reply” desc=”隐藏内容:评论后查看”]

/*聚合热搜CSS*/
.hot-ico {
height: 18px;
margin-right: .25rem;
margin-bottom: .2rem;
}
.hot-rank {
width: 18px;
border-radius: 4px;
background: rgba(124,124,124,.3);
display: inline-block;
}
.hot-rank-1 {
color: #fff;
background: #f1404b;
}
.hot-rank-2 {
color: #fff;
background: #c56831;
}
.hot-rank-3 {
color: #fff;
background: #b89e2c;
}
/*聚合热搜CSS结束*/

 

[/hidecontent]

聚合热搜API对接子比,目前整合13个热榜,均为本地api
© 版权声明

相关文章

暂无评论

暂无评论...