这个代码我说一下,代码放到:子比主题–>>自定义CSS样式,这个如果放到自定义样式的话他是全局显示,什么意思呢,就是连文章页面那个下面也是这样的样式,如果你只想在首页显示的话,我建议你可以自己在服务器创建一个css文件放进去然后引入一下文件,引入到/wp-content/themes/zibll/index.php这个文件
代码里面用的是我的动图,你可以换成你自己的,都可以!
.box-body.notop {
background:var(--main-bg-color);
padding:5px;
padding-left:1.2em;
border-radius:10px;
margin-bottom:10px;
}
.title-theme {
position:relative;
padding-left:1.3em;
font-size:20px;
margin:5px;
}
.title-theme::before {
content:'';
top:-30px;
width:64px;
height:64px;
left:-32px;
background:url(https://www.tfbkw.com/wp-content/themes/ZibTF/img/qiqiu.gif);
box-shadow:0 0 black;
background-size:cover;
}
.title-theme small {
font-size:60%;
margin-left:20px;
}
.title-theme .ml10::before {
position:absolute;
content:'';
width:1px;
background:var(--theme-color);
top:30%;
left:115px;
bottom:16%;
}
暂无评论内容