Home › Forums › Add-ons › Repeater Field › Add active class to self row – repeater field › Reply To: Add active class to self row – repeater field
Hi @magnusnesse
The code you shared lists the titles for each row. If you want to set a different class for each row, you need to modify the code that lists the rows, not the titles.
If you don’t understand the logic, please learn more about foreach here: http://php.net/manual/en/control-structures.foreach.php. You can also hire a developer to help you out with it. I’d recommend looking for one on https://studio.envato.com/ or https://www.upwork.com/.
I hope this makes sense.
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.