add style sheet in plugin

add_action(‘admin_enqueue_scripts’,’myscript’);
function myscript()
{
wp_register_script( ‘your_css_and_js’, plugins_url(‘jquery.js’,__FILE__ ));
wp_enqueue_script(‘your_css_and_js’);
wp_enqueue_script(‘syllabus’,plugins_url(‘syllabus.js’,__FILE__));
wp_enqueue_style(‘syllabus’,plugins_url(‘style.css’,__FILE__));
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s