Support

Account

Home Forums General Issues Styling not working in backend Reply To: Styling not working in backend

  • Hi @dweb

    That’s because WordPress uses completely different layouts for the profile editor page. If you want to style it, you need to add the CSS code manually like this:

    add_action('acf/input/admin_head', 'my_acf_admin_head5');
    function my_acf_admin_head5() {
        
        ?>
        <style type="text/css">
            tr.acf-field-1234567890abc {
                display:block;
                width:50%;
            }
        </style>
        <?php    
        
    }

    Where ‘1234567890abc’ is the key of your custom fields. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acfinputadmin_head/.

    I hope this helps 🙂