I originally referenced the CSS in the section of header.php:

<link href="<?php echo get_bloginfo('template_directory'); ?>/style.css" rel="stylesheet">

After it stopped working, I tried enqueuing it in functions.php:

function add_styles_scripts()
{
    wp_register_style( 'style',  get_template_directory_uri() .'/style.css');

    wp_enqueue_style( 'style' );
}

(Above I’ve left out the rest of the CSS/JS files that were already enqueued, for simplicity.)

WordPress does see the CSS file as it recognises the notes in the head as my custom theme:

/*
Theme Name: onesquad
Author: Erin Culleton
Description: One Squad
Version: 0.0.1
Tags: One Squad
*/

but it only displays the raw html, and Chrome devtools doesn’t find any trace of it either.

It’s located in the root folder of my theme.

Could it be a database problem? I have no idea where to even start looking.

Many thanks.

Read more here: WordPress suddenly not recognising CSS


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: