我尝试在类别说明here上加粗文字,但它仍会显示正常文字。
答案 0 :(得分:0)
你可以使用这个插件: 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' );
答案 1 :(得分:0)
在style.css中更新以下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;
}
我刚添加了font-weight:900;
希望这会对你有所帮助!!