I’m using London theme and I can successfully change the font with code injection, but somehow I can’t change the color no matter what I type. My code is:
If the font is in fact changing I assume my code is right. Am I missing something related to color? Are there some things in CSS that prevent to change the style via code injection? Because I’ve noticed this behavior with other themes (liebling) changing other styles (like quotes).
That’s because of CSS Specificity. Color is already set to the element using the .post-content-title class. So, when you try to change the color using h1 which has a less degree in Specificity compared to the class, no effects will happen. Therefore, .post-content-title will win. Like the following screenshot.