在知更鸟的主题上使用Anspress问答插件,会发现问题页面的布局很乱很难看,想要修改也非常简单,只需要在插件single-question.php中加入一些CSS样式代码即可
积分
铂金会员 免费 尊享会员 免费
购买包含
更新日志 提醒更新
付费资源
已售

针对知更鸟主题对Anspress问答插件问题页进行样式修改

在知更鸟的主题上使用Anspress问答插件,会发现问题页面的布局很乱很难看,想要修改也非常简单,只需要在插件single-question.php中加入一些CSS样式代码即可

在插件目录中找到anspress-question-answer\templates\single-question.php 文件

然后在文件顶部加入如下代码,保存上传即可

<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>

 

喜欢就支持以下吧
倾尘SEO
  • 本文由 倾尘SEO 发表于 2018年1月21日
  • 转载请务必保留本文链接:https://www.qcwlseo.com/begin-is-anspress.html
 评论   0   访客   0