Home › Forums › Bug Reports › acf/prepare_field incomplete? › Reply To: acf/prepare_field incomplete?
I think this needs some more thought, John. Honestly.
A basic ACF text field DOES get the $field[‘class’] attribute applied to its class.
But the input of a datepicker field is ignored (as I show above).
Can we not, at least, aim for simple consistency?
$field[‘class’] should always be available, and should always be applied to the visible element, so that things like Bootstrap classes can be applied easily.
To my mind this is sensible, and a fairly trivial update to the code. It’s very little work to do it, and a big win for consistency and usefulness.
A
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.