Site logo

Archived topic

CSS classes not being recognized

3 replies · Started by Rob on November 22, 2016

Viewing posts 1–4 of 4

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.

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.

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

This archived topic is closed to new replies.