Enqueued css not applied.
-
Here is my code:
home.php
<div class="test-class"> test text </div>
functions.php
<?php function blabla() { wp_enqueue_style( 'homepage', './homepage.css' ); } add_action( 'wp_enqueue_scripts', 'blabla' ); ?>
homepage.css
#test-class { color: red; }
All the files are in the root folder of the theme.
I don’t understand why the css is not enqueued. (The text in the div has no red color).
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Enqueued css not applied.’ is closed to new replies.