Home › Forums › ACF PRO › Repeater Field Wrapper, Incrementing Class and IDs › Reply To: Repeater Field Wrapper, Incrementing Class and IDs
Ah..
Well ACF does not attempt to do anything to your theme or frontend on it’s own. The wrapper attributes you are all referring to are not something that would automatically be applied to frontend when you use have_rows.. It’s a way to customize the layout of the fields in admin..
So for instance you could set with to 50% on two fields below each other to make them appear side by side in wp admin. Or if you require to run some custom javascript in admin and target specifik ACF fields you could give them all a custom class name to target.
Any and all output of ACF field values in your themes has to be done by yourself. And setting classnames or IDs on your elements in the theme is super simple
<div class="my-class" id="my-specific-id"></div>
And say you want all elements with my-class to have 50% width you’d set this in your style.css
.my-class{ width: 50%; }
Hope that clears it up for you!
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.