function my_acf_admin_head() {
?>
<style type="text/css">
.acf-flexible-content .layout .acf-fc-layout-handle {
background-color: #ddf5fd;
/*background-color: #202428;*/
color: #000;
border-radius: 6px;
}
.acf-repeater .acf-row-handle span{
font-weight: normal;
margin-top: 50%;
font-size: 16px;
display: block;
position: relative;
}
.acf-flexible-content .layout{
border: none;
}
.hndle.ui-sortable-handle{
background-color: #ddf5fd;
margin: 0 0 20px 0;
border-radius: 6px;
}
.hndle.ui-sortable-handle span{
color: #000;
}
.acf-repeater.-row > table > tbody > tr > td,
.acf-repeater.-block > table > tbody > tr > td {
border-top: 1px solid #333;
}
.acf-repeater .acf-row-handle {
vertical-align: top !important;
padding-top: 16px;
}
.acf-repeater .acf-row-handle span {
font-size: 20px;
font-weight: bold;
color: #202428;
}
.imageUpload img {
width: 75px;
}
.acf-repeater .acf-row-handle .acf-icon.-minus {
top: 30px;
}
.edit-post-meta-boxes-area .postbox{
display: block;
position: relative;
clear: both;
margin: 0 0 20px 0;
}
.acf-postbox > .hndle .acf-hndle-cog {
color: #000 !important;
}
</style>
<?php
}
add_action('acf/input/admin_head', 'my_acf_admin_head');
PHP to add styles to ACF backend. This is especially helpful with WordPress 5.0. Editor styles make it difficult to distinguish parts fo the editor.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.