Home › Forums › Feature Requests › Repeater field divider border › Reply To: Repeater field divider border
If you are using the latest version (ACF Pro 5.8.1) i think the following code will help
/* add border to the repeater block row */
.acf-repeater.-block > table > tbody > tr > td {
border-top-width: 5px;
border-top-color: #046f8a!important;
}
/* exclude the forist row */
.acf-repeater.-block > table > tbody > tr:first-child > td {
border-top-width: 0px;
border-top-color: #046f8a!important;
}
/* in case if you got any nested repeater blocks and want to hide the border */
.acf-repeater.-block > table > tbody > tr > td .acf-repeater.-block > table > tbody > tr > td {
border-top-width: 0px;
border-top-color: #E1E1E1;
}
enqueue these styles in the admin.
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp
— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.