Forums
(@randomuser909)
8 years, 1 month ago
ok, after some digging:
if ( !is_admin() ) { wp_enqueue_style( ‘mystyles’, ‘https://www.myserver.com/css/mystyles.css’ ); // echo “This is front-end page”; } else { // echo “this is an admin page!”; }
Say I have stylesheet at location https://www.myserver.com/css/mystyles.css
How do I link this stylesheet in the header of every page, but not the wp-admin area?
Anyone?