I am trying to call my custom styles in my wordpress plugin. I tried the wp_enqueue methods but i could not find my style sheet getting loaded.
I have tried examples from stackoverflow itself but it is not working for me. I checked the enqued styles using debug bar - dependancy tool and cannot find the styles in that too. Please check the link for my enqued styles . debug bar The following are the two different ways, i tried to load my css.
function wp_adding_styles1()
{
wp_enqueue_style('my_eastern_charts_stylesheet', plugin_dir_url(__FILE__) . 'eastern_charts_stylesheet.css');
}
add_action('wp_enqueue_scripts', 'wp_adding_styles1');
function wpb_adding_styles() {
wp_register_style('my_stylesheet', plugins_url('eastern_charts_stylesheet.css', __FILE__));
wp_enqueue_style('my_stylesheet');
}
add_action( 'wp_enqueue_scripts', 'wpb_adding_styles' );