第一步:主题目录打开 functions.php ,在最后添加如下代码
/*开启wordpress友情链接管理*/
add_filter( 'pre_option_link_manager_enabled', '__return_true' );
第二步:主题目录 -> footer.php ,在“<?php if ( _cao( ‘cao_copyright_text’, ” ) != ” ) : ?>”前添加如下代码
<div class="codesign-dw">
<div class="col-xs-12 friend-links">
<ul class="codesign-fl">
<li style="list-style-type: none;">
<ul class="codesign-fl">
<li class="codesign-fl-title">友情链接:</li>
</ul>
</li>
</ul>
</div>
</div>
第三步:主题目录 -> assets -> css -> diy.css 添加如下样式
.col-xs-12.friend-links {
padding: 14px;
}
.codesign-fl {
display: flex;
list-style: none;
padding: 0;
margin: 0;
font-size: 13px;
}
.codesign-fl li{
margin-left: 10px;
}
.codesign-fl a{
color: #949494;
}
.codesign-fl a:hover{
color: #058ff9;
}
.codesign-dw{
border: 1px dashed #ccc;
background-color: #f7f8fa;
text-shadow: #fff 0px 1px 0px;
}
.ripro-dark .codesign-dw{
border: 1px dashed #44444487;
background-color: #2d2d2d;
text-shadow: #000 0px 1px 0px;
}