This topic has 4 replies, 2 voices, and was last updated 8 years, 5 months ago ago by Jack Richardson
Good morning,
I created a custom css class for a h2 header to be used in the articles, but the style is not applied.
this is the customized h2 class added in the child theme style sheet:
h2.blog {
color: #000000;
font: 20px/24px ‘Raleway’, Georgia, Helvetica, sans-serif;
font-weight: 600;
}
and this is the html that I put in the article:
<h2 class=”blog”>Test style intestazione</h2>
I do not understand because it is not applied.
Hello,
I’ve added “!important” to your code attributes.
Clear browser cache and check your style now.
Best regards,
Jack Richardson.
Ok, now it works, I thought that those rules in the child theme style.css had precedence over everything. Apparently I was wrong.
Thank you.
Hello,
You’re welcome.
Best regards,
Jack Richardson.
Tagged: child theme, persuasive, style, templates, woocommerce, wordpress
The issue related to '‘Style css in the child theme’' has been successfully resolved, and the topic is now closed for further responses