Skip to content

Instantly share code, notes, and snippets.

@Dianakc
Last active December 15, 2015 16:09
Show Gist options
  • Save Dianakc/e5e97e0eb5d8a811a975 to your computer and use it in GitHub Desktop.
Save Dianakc/e5e97e0eb5d8a811a975 to your computer and use it in GitHub Desktop.
Add custom CSS in admin panel.
<?php
function dkc_add_css_on_pages() {
echo '
#csp-dialog-msgid[style], #csp-dialog-msgid-plural[style] {font-size:14px!important; font-family:"Lucida Console"!important; color:#333; padding:10px;background:#D8E8F5;border:none;line-height:18px!important }
#csp-dialog-msgstr[style], #csp-dialog-msgstr-0[style], #csp-dialog-msgstr-1[style] {font-size:14px!important; font-family:"Lucida Console"!important; color:#000; background:#FAFCFE;border:none;padding:10px;line-height:18px!important }
#csp-dialog-msgstr[style]:focus, #csp-dialog-msgstr-0[style]:focus, #csp-dialog-msgstr-1[style]:focus {font-size:14px!important;-webkit-box-shadow: 0px 1px 0px 2px #A6BFD3; box-shadow: 0px 1px 0px 2px #A6BFD3;: 0px 0px 10px 2px #A6BFD3;background:#f7f7f7}
#csp-dialog-body strong {color:#85B7E0}
';
}
add_action('admin_head', 'dkc_add_css_on_pages');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment