Tagged Questions
0
votes
1answer
55 views
admin_print_styles incuding $_SERVER['DOCUMENT_ROOT']
All the Javascript isn't working in the admin area on my production server.
Locally it works fine. I have narrowed it down to /wp-admin/wp-header.php line 72-78
do_action('admin_print_styles');
...
11
votes
4answers
3k views
How do I enqueue styles/scripts on certain /wp-admin pages?
I have two simple functions that load stuff using wp_enqueue_style() and wp_enqueue_script(), something like these:
function admin_custom_css()
{ wp_enqueue_style( 'stylesheet_name', ...