Home › Forums › Backend Issues (wp-admin) › How can I add a class to the radio button input? › Reply To: How can I add a class to the radio button input?
You cannot add classes to the individual radio fields using ACF. You can target the button by the value.
[data-key="field_5af32dbd01019"] input[value="gray"] {
/* your css here */
}
the first part of the selector targets the entire radio group and the second part targets the button with the value of gray.
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.