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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -