在知更鸟的主题上使用Anspress问答插件,会发现问题页面的布局很乱很难看,想要修改也非常简单,只需要在插件single-question.php中加入一些CSS样式代码即可
在插件目录中找到anspress-question-answer\templates\single-question.phpxa0文件
然后在文件顶部加入如下代码,保存上传即可
<style>
#primary {
float: left;
width: 99.9%;
transition-duration: .5s;
background-color: #fff;
border: 1px solid #dddddd;
padding: 20px;
}
#sidebar, .r-hide, .s-hide {display: none;}
.single-content h3 {
background-color: #fff;
border-left: none;
}
.single-content ul li {
list-style: none;
}
.single-content ul li, .single-content ol li {
margin: 0;
}
.breadcrumb {
height: 9px;
line-height: 62px;
}
</style>


评论
0 访客 0