后台->外观设置->自定义样式添加如下代码
.footer{
margin: 0 auto;
padding-top: 50px;
padding-bottom: 40px;
text-align: center !important;
width: 50%;
a{
text-decoration: none;
&:hover {
text-decoration: none;
border-bottom: 1px dashed @link-color;
font-weight: bold;
}
}
}
@media @phone{
.footer{
display: none !important;
// width: 100%;
}
}
- 说明一下,默认情况下手机端不显示底部相关,如果你想要手机端也显示的话,把 // width:100%; 前面的 // 删除掉,然后在 display: none !important; 前面加上 //。
之后找到文件
vendor/flarum/core/views/forum.blade.php
在最后面添加如下代码:
<div class="footer">
<p><a href="https://www.e7ko.com/" target="_blank">E7KO</a></P>
<hr style="border:0;border-top:1px dashed #edeff3 ">
<p>Copyright © <a href="{{ $forum->attributes->baseUrl }}"> "{{ $forum->attributes->title }}" </a> All Rights Reserved · <a href="http://www.miibeian.gov.cn/" target="_blank">粤ICP备XXXXX号</a></p>
<p> Powered BY <a href="http://flarum.org/" target="_blank">Flarum</a></p>
</div>