Zibll子比主题添加今日热搜榜单

Zibll子比主题添加今日热搜榜单-模站无忧-wordpress教程,建站资源,网站源码,wp主题下载
Zibll子比主题添加今日热搜榜单
此内容为免费资源,请登录后查看
赞助币0
3401908672@qq.com
免费资源

教程

Zibll子比主题添加今日热搜榜单

Zibll子比主题添加今日热搜榜单

首页版:

将下载文件中的 index.php 里的内容复制到 /wp-content/themes/zibll/index.php 里你想要放置的地方 hotlist 文件夹放到 /wp-content/themes/zibll 内即可

页面版:

将下载文件中的 HotList.php、hotlist 文件夹 放到 /wp-content/themes/zibll/pages 

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

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

/*聚合热搜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结束*/
© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容