I am using css and js files for plugin this way
function my_plugin_load_javascriptsandcss(){
wp_register_script( 'jquery1', plugins_url('js/jquery.js', __FILE__) );
wp_enqueue_style('style-index', plugins_url('css/style-i.css', __FILE__),array(),'1.0',false);
wp_enqueue_script( 'jquery1' );
}
add_action('wp_enqueue_scripts', 'my_plugin_load_javascriptsandcss');
Loaded css and js files for all pages how can I create css and js files for a specific page that not be included in admin area in my plugin
Comments
Post a Comment