我正在为我的childtheme编辑css样式表,在150行代码之后,另一行代码停止应用于网站。当我把同一行代码放在顶部时,一切都正常。
这是一个link to the stylesheet 我正在研究:
#wr-promo-title h1 {font-family: \'lora\' !important;} - first line should be on the bottom
我做错了什么?我正在为我的childtheme编辑css样式表,在150行代码之后,另一行代码停止应用于网站。当我把同一行代码放在顶部时,一切都正常。
这是一个link to the stylesheet 我正在研究:
#wr-promo-title h1 {font-family: \'lora\' !important;} - first line should be on the bottom
我做错了什么?在我看来,你还没有在样式表中声明“lora”。。。我所能看到的就是lorabold,lorabold\\u italic,loraitalic,loraregular。所以我认为css被解释为
font-family: !important;
虽然我不是百分之百的确定这就是你的问题所在。尝试更改#wr-promo-title h1 {font-family: \'lora\' !important;}
至#wr-promo-title h1 {font-family: \'loraregular\' !important;}
如果您想使用的字体有问题,最好添加一些后备字体,如font-family: "loraregular" , Verdana, Helvetica, Sans-Serif !important;
所以,我有一个子主题,里面除了所需的CSS文件之外什么都没有。一旦我激活了这个儿童主题,我的整个网站就关闭了。最后我有两个问题:激活一个只有CSS的子主题怎么能破坏我的网站</我怎样才能回到我原来的主题</这些是网站给我的错误:Warning: require_once(/wp-content/themes/interio_child/admin/options-framework.php) [function.require-once]: 无法打开流:中没有此类文件或目录/wp-c