The CSS (style.css) Of My Custom Theme Is Not Being Applied At All


I am creating my own theme WordPress, however the CSS I wrote for the theme design is not being applied at all. It’s saved in style.css and I have applied the following in my functions.php file:


function letters_files() {
  wp_enqueue_style('style',get_stylesheet_uri(),NULL, microtime() );
  wp_enqueue_style('custom-google-fonts', '|Comfortaa|Cutive+Mono|Dancing+Script|Open+Sans|Roboto');


function letters_features() {
 register_nav_menu('FloatingHeaderMenu', 'Floating Header Menu');
 register_nav_menu('footerLocationOne', 'Footer Nav Menu (Footer Menu 1)');
 register_nav_menu('footerLocationTwo', 'Legal Footer Menu (Footer Menu 2)');

add_action('after_setup_theme', 'letters_features');


To make sure that the CSS itself isn’t the problem, I have stripped down style.css to something simple to make it clear whether the CSS is working or not:

  Theme Name: Letter Theme
  Author: me
  Version: 1.0

  background-color: green;
  text-align: center;
  font-family: "Courier", arial;

It seems that no matter what I try, WordPress just does not recognise the theme’s CSS. Does anyone know any fixes or can anyone see if I’m doing anything wrong here?

, , , Rowan 3 years 2020-03-24T12:51:12-05:00 0 Answers 123 views 0

Leave an answer