How to include styles and scripts on wordpress admin pages?
- by admin
- 1
How do I add CSS and JavaScript to WordPress admin area?
In “admin_enqueue_scripts” hook used to include scripts and css in admin area
add_action(‘admin_enqueue_scripts’, function()
{
wp_enqueue_style( ‘myscript’, PTS_CSS_URL.’/myscript.css’);
});
How do I add CSS and JavaScript to WordPress admin area? In “admin_enqueue_scripts” hook used to include scripts and css in admin area add_action(‘admin_enqueue_scripts’, function() { wp_enqueue_style( ‘myscript’, PTS_CSS_URL.’/myscript.css’); });
How do I add CSS and JavaScript to WordPress admin area? In “admin_enqueue_scripts” hook used to include scripts and css in admin area add_action(‘admin_enqueue_scripts’, function() { wp_enqueue_style( ‘myscript’, PTS_CSS_URL.’/myscript.css’); });
Awesome post! Keep up the great work! 🙂