Created
December 25, 2017 15:35
-
-
Save hawkidoki/4f745548e883866d954f728db44d8b61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('acf/input/admin_head', 'hwk_acf_flexible_head'); | |
function hwk_acf_flexible_head(){ ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('[data-name="hwk_hidden_parent"]').each(function(){ | |
$(this).closest('.acf-postbox').addClass('acf-hidden'); | |
}); | |
}); | |
</script> | |
<style type="text/css"> | |
.acf-field-clone[data-name^="hwk_layout_"]{ | |
padding:0; | |
margin:-1px; | |
} | |
.acf-fc-layout-handle .layout_image{ | |
display:none; | |
} | |
.acf-fc-popup li a{ | |
padding:12px; | |
border-bottom:1px solid #222; | |
text-align:center; | |
} | |
.acf-fc-popup li:last-of-type a{ | |
border-bottom:0; | |
} | |
.acf-fc-popup li .layout_image{ | |
margin-bottom:7px; | |
} | |
.acf-fc-popup li .layout_image img{ | |
max-width:200px; | |
height:auto; | |
} | |
.hwk-acf-field-group-fields { | |
border: 0 none; | |
box-shadow: none; | |
} | |
.hwk-acf-field-group-fields > .handlediv, | |
.hwk-acf-field-group-fields > .hndle { | |
display: none; | |
} | |
.hwk-acf-field-group-fields a { | |
text-decoration: none; | |
} | |
.hwk-acf-field-group-fields a:active, | |
.hwk-acf-field-group-fields a:focus { | |
outline: none; | |
box-shadow: none; | |
} | |
.hwk-acf-field-group-fields .no-fields-message { | |
padding: 15px 15px; | |
background: #fff; | |
} | |
.hwk-acf-field-group-fields .li-field-order { | |
width: 20%; | |
} | |
.hwk-acf-field-group-fields .li-field-label { | |
width: 30%; | |
} | |
.hwk-acf-field-group-fields .li-field-name { | |
width: 25%; | |
} | |
.hwk-acf-field-group-fields .li-field-type { | |
width: 25%; | |
} | |
.hwk-acf-field-group-fields .li-field-key { | |
display: none; | |
} | |
.hwk-acf-field-group-fields .acf-field-list-wrap { | |
border: #DFDFDF solid 1px; | |
} | |
.hwk-acf-field-group-fields .acf-field-list { | |
background: #F9F9F9; | |
margin-top: -1px; | |
} | |
</style> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment