在Wordpress中格式化类别描述
答
您可使用此插件: https://wordpress.org/plugins/allow-html-in-category-descriptions/
或在您的Function.php
function cat_desc_filter($desc, $cat_id) {
// Allow <p> and <a> and <img> <b><strong>
$desc = strip_tags($desc, '<p><a><img><b><strong>');
return $desc;
}
add_filter('category_description', 'cat_desc_filter');
答
更新中的style.css http://www.partyxyz.com/wp-content/themes/sahifa/style.css
#main-nav ul li a {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: #383838;
border-image: none;
border-style: solid;
border-width: 0 0 0 1px;
color: #ddd;
display: inline-block;
font-weight: 900;
height: 42px;
line-height: 47px;
padding: 0 10px;
position: relative;
}
下面的CSS代码使用此示例代码
我刚添加字体重量:900;
希望这会帮助你!
欢迎来到SO。请阅读[我可以问哪些主题](http://stackoverflow.com/help/on-topic)和[如何提出一个好问题](http://stackoverflow.com/help/how-to-ask )和[完美的问题](https://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/)和[如何创建一个最小,完整和可验证的例子](http:///stackoverflow.com/help/mcve) – mazedlx