Can’t link CSS to plugin
-
Hello,
I am trying to link CSS styles to my plugin. The styles are for the _/settings_ of the plugin. It is just styling of the settings form.
add_action('admin_enqueue_scripts', 'emnoti_styles');
^^ I link the styles there in the index.php and in functions.php I have this function:
function emnoti_styles() { wp_register_style( 'the_plugin_css', 'styles/emnoti_styles.css' ); wp_enqueue_style( 'the_plugin_css' ); }
But the styles aren’t applied. There is no error, just no styling. Please tell me what I am doing wrong. Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can’t link CSS to plugin’ is closed to new replies.