Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Last active August 29, 2015 14:13
Show Gist options
  • Save SiGaCode/0e2dfcba4b9fa0ff5c94 to your computer and use it in GitHub Desktop.
Save SiGaCode/0e2dfcba4b9fa0ff5c94 to your computer and use it in GitHub Desktop.
Turn the "Custom Code" buttoms in Dynamik Design area light green when in use (visually highlight them to signalize "there´s code in there"). Goes to Dynamik Custom - Functions. Credits: Junior Atoms / Larry: http://cobaltapps.com/forum/forum/main-category/feedback-suggestions/47450-more-dwb-in-2015
//* Turn Custom Code buttons in Design area colored when code in use
add_action('admin_head', 'admin_css');
function admin_css() {
echo '<style> .wp-core-ui .button.custom-hilight { background: #EDFFAF; box-shadow: none; } </style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment