You are currently viewing Link css and js file in wordpress admin panel

Link css and js file in wordpress admin panel

Link custom css and js external file in wordpress admin for customizing admin page design and layouts. by using external file you can custmize layout of custom pages in wp-admin.

function admin_style_and_scrips() {
    wp_enqueue_style('admin-styles', get_stylesheet_directory_uri().'/admin-assets/css/product-styles.css');

    wp_enqueue_script( 'admin-scripts', get_stylesheet_directory_uri() . '/admin-assets/js/product-script.js', array( 'jquery' ), '1.0', true );

}


add_action('admin_enqueue_scripts', 'admin_style_and_scrips');

Leave a Reply