Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more granular adding of js and css in admin

  • Loading branch information...
commit 1d227f6437461ae5e465ccf40d07e6b0f71d1832 1 parent 588f686
@alexkingorg alexkingorg authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 admin.php
View
8 admin.php
@@ -242,10 +242,12 @@ function cfct_header_image_form() {
function cfct_admin_head() {
// see enqueued style above, we'll activate that in the future
- echo '
+ if ($_GET['page'] == 'carrington-settings') {
+ echo '
<link rel="stylesheet" type="text/css" media="screen" href="'.get_bloginfo('template_directory').'/carrington-core/css/colorpicker.css" />
- ';
- cfct_admin_css();
+ ';
+ cfct_admin_css();
+ }
// cfct_admin_js();
}
add_action('admin_head', 'cfct_admin_head');
Please sign in to comment.
Something went wrong with that request. Please try again.