I am making my first plugin. I create a folder in \wp-content\plugins, create a test.css and a test.php file.
Here is my test.css:
body {
background-color: red !important;
}
Here is my test.php (Taken from Theme Developer Handbook):
<?php
/*
Plugin Name: Site Plugin for Quảcầu.com
Description: Site specific code changes for Quảcầu.com
*/
function add_theme_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_style( 'slider', get_template_directory_uri() . 'test.css', array(), '1.1', 'all');
}
add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );
But the color doesn't change. Do you know why? Of course I have activated it.