Custom Dashboard – Load css file from plugin's folder
-
Hello every one . I have a bit of lame question . I am doing a custom dashboard following a tut and I want to load a css file in to the dashboard.php . Know i can use the srtaight link for the css file’s href but .. because i will probably end up using this on ohter sites too because it is soo cool i thought that
<?php bloginfo('url');?>would work , but because it is an admin page , it seems no to like it much . plus .. im should be laoding this in the <head> but to get the rest of the style and of the wp-admin u have what the tut advices .
so o load the <head>like ;require_once( ABSPATH . 'wp-load.php' ); require_once( ABSPATH . 'wp-admin/admin.php' ); require_once( ABSPATH . 'wp-admin/admin-header.php' );and the footer like :
<?php include( ABSPATH . 'wp-admin/admin-footer.php' );?>Maybe i have just been staring at screens for too many hours and my head is not working . so what whould be the best way to load up the css flie from my plugins folder ?
I bet if there are a milion post outhere about this but if any one can just point it out for me it would be magnificent .
Thanks
The topic ‘Custom Dashboard – Load css file from plugin's folder’ is closed to new replies.