css - WordPress wp_enqueue_style not working -
css - WordPress wp_enqueue_style not working -
i trying include css file in wordpress plugin admin page. have tried below method
function theme_name_scripts() { wp_enqueue_style( 'jspro', '/includes/parts/css/jspro.min.css'); }
but unfortunately doesn't work. css file path right given here,and have tried every method. idea?
you need have absolute url css file, , hook right admin hook (in case, 'admin_init'
):
add_action( 'admin_init', 'theme_name_scripts' ); function theme_name_scripts() { wp_enqueue_style( 'jspro', plugins_url('includes/parts/css/jspro.min.css', __file__)); }
css wordpress styles
Comments
Post a Comment