Support

Account

Home Forums Feature Requests Field label – Show/hide option Reply To: Field label – Show/hide option

  • Just to say thanks to @james for pointing this hook. Its Jan, 2021 now…
    WP 5.6, ACF PRO 5.9.3
    ACF pro stopped showing the keys… with “display:none”.

    I went a little further, but this is the idea:

    
    function my_acf_admin_head() {
    	?>
    	<style type="text/css">
    		#acf-field-group-fields .li-field-key {
    			display: block;
    			width: 15%;
    		}
    		#acf-field-group-fields .li-field-type {
    			width: 10%;
    		}
    		#acf-field-group-fields .li-field-name {
    			width: 20%;
    		}
    	</style>
    	<?php
    }
    
    add_action('acf/input/admin_head', 'my_acf_admin_head');