pierrebalian of Rocket55 Web Team
1/31/2017 - 8:16 PM

insert styles into wp admin for highlighting acf flex metaboxes. Makes dragable handles yellow and outline flex in red border. This goes i

insert styles into wp admin for highlighting acf flex metaboxes. Makes dragable handles yellow and outline flex in red border. This goes in functions.php. Could obviously be modified to insert any style you want into wp-admin

/*Custom Admin CSS for ACF Highlighting*/

add_action('admin_head', 'my_custom_admin_styles');

function my_custom_admin_styles() {
	echo '<style>
	.acf-fc-layout-handle.ui-sortable-handle {
		background: yellow;
	} 
	.acf-field-message {
		background: #efefef;
	}
	.acf-flexible-content .layout {
		border: 5px solid red;
	}
</style>';
}