[Resolved] CSS classes not being recognized

Home Forums Support [Resolved] CSS classes not being recognized

Home Forums Support CSS classes not being recognized

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #246737
    Rob

    Strange problem that started in the middle of the project. Site has multiple pages – with CSS classes that ARE working. However, on specific pages, the CSS class is NOT being recognized.

    Example: <h2 class=”resources_title”>TITLE</h2> – results in NO formatting.

    I’ve checked the class name (.resources_title) in the child theme multiple times…nothing. All other child theme CSS is working on the site. I believe the problem started after I installed WP-Unformatted. I have since deactivated and deleted the plugin. But, it is still not working. I’ve even tried rolling back database backups.

    The only way I can get styling is by the inline method. I do not want this due to performance issues. Please help.

    Thank you in advance.

    #246740
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    So you have the resources_title class, and you’ve added CSS in your child theme targeting this class?

    What if you move it to the top of the document? If there’s a syntax error in CSS, anything below the error is ignored.

    #246743
    Rob

    That worked. Thank you so much. Now….I’ll hunt for the syntax error.

    #246748
    Tom
    Lead Developer
    Lead Developer

    You’re welcome!

    This should help: https://jigsaw.w3.org/css-validator/#validate_by_input

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.