Css 撤消WordPress标题上的大写文本装饰(214主题)
我使用自定义主题,它是214个孩子。Css 撤消WordPress标题上的大写文本装饰(214主题),css,wordpress,Css,Wordpress,我使用自定义主题,它是214个孩子。 默认情况下,wordpress中的所有标题都将变为大写。 我在/var/www/html/wp/wp-content/themes/Twenty14-child/style.css中添加了一个css h1.entry-title { text-transform: none !important; } 这根本没有效果 cat/var/www/html/wp/wp-content/themes/Twenty14-child/style.css *{
默认情况下,wordpress中的所有标题都将变为大写。
我在/var/www/html/wp/wp-content/themes/Twenty14-child/style.css中添加了一个css
h1.entry-title {
text-transform: none !important;
}
这根本没有效果
cat/var/www/html/wp/wp-content/themes/Twenty14-child/style.css
*{
font-family:"DejaVu Sans Mono" !important;
}
.site {
max-width: 1920px;
}
.site::before{
width:400px;
}
.site-header {
max-width: 1920px;
}
.site-content header .entry-meta {
max-width: 100%;
}
.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.site-content .navigation,
.comments-area,
.page-header,
.page-content {
max-width: 70%;
}
article{
margin-bottom:10px;
}
#secondary ul li{
color:black;
width:360px;
font-size:16px;
}
.entry-meta .cat-links{
display:none;
}
pre{
font-family:inherit;
font-size:16px;
border:1px solid red;
}
h1.entry-title {
text-transform: none !important;
}
我的214个孩子
主题已激活。
用inspect检查标题。
为什么元素h1.条目标题没有被http://hwy.local/wp/wp_content/themes/twentyfourteen/style.css?ver=4.9.8:1112
,
除了/var/www/html/wp/wp-content/themes/Twenty14d-child/style.css
?之外,您可以使用:
.entry-title {text-transform: none!important;}
。。。或者简单地说:
h1.entry-title {text-transform: none;}
这两种解决方案都赢得了这场特殊性之战(您的代码也是如此)。您可能没有正确加载CSS。右键单击条目标题,查看其是否已应用和/或被覆盖。要清除浏览器中的所有缓存,Twenty14子主题将生效。主题是否已激活?