Home Forums General Issues Styling not working in backend


Styling not working in backend

  • Hello,
    When i choose to apply custom field to a user role and set width field to 50% in Wrapper Attributes section

    Width is not set to 50% !

    Thank you for your help

  • 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 {

    Where ‘1234567890abc’ is the key of your custom fields. This page should give you more idea about it:

    I hope this helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.