
首先一共三步,有两行php代码和一个css代码,话不多说直接开始教程
下面的PHP代码放到子比文件:/wp-content/themes/zibll/inc/functions/zib-posts-list.php的大概263行,如下图

/wp-content/themes/zibll/inc/functions/zib-posts-list.php的大概305行,如下图

CSS代码我就不说了,直接放到子比主题=>>自定义CSS样式即可!
background: linear-gradient(to right, #4f6dee, #67bdf9);
这个是颜色,自己需求
/*文章卡片下载按钮 tfbkw.com*/
a.down {
display: inline-block;
width: 100%;
height: 30px;
line-height: 30px;
border-radius: 15px;
background: linear-gradient(to right, #4f6dee, #67bdf9);
color: #fff;
text-align: center;
cursor: pointer
text-shadow: none;
border: none;
outline: none;
box-shadow: none;
padding: 0;
margin: 0;
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)