Style css in the child theme - by Rodolfo

This topic has 4 replies, 2 voices, and was last updated 7 years, 10 months ago ago by Jack Richardson

  • Avatar: rodolforizzo76
    Rodolfo
    Participant
    June 14, 2016 at 18:25

    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.

    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 14, 2016 at 19:32

    Hello,

    I’ve added “!important” to your code attributes.
    Clear browser cache and check your style now.

    Best regards,
    Jack Richardson.

    Avatar: rodolforizzo76
    Rodolfo
    Participant
    June 14, 2016 at 23:14

    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.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 15, 2016 at 10:00

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Style css in the child theme’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.