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