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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -