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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.