wp_enqueue styles not working
-
Hi,
I am developing a plugin and my css isn’t showing up. I used the wp_enqueue_style function but perhaps I’m missing something.
EX: `function my_function_name(){
wp_register_style(‘plugin-name-css’,WP_PLUGIN_URL.’/plugin-file-name/styles.css’);
wp_enqueue_style(‘plugin-name-css’);
}add_action(‘my_styles’, ‘my_function_name’);`
The topic ‘wp_enqueue styles not working’ is closed to new replies.