Home › Forums › Feature Requests › Feature Suggestion: › Reply To: Feature Suggestion:
Hi @nmgacf
For something like that, you would need to detect the user’s device first. Please take a look at this thread to learn more about it: http://stackoverflow.com/questions/4117555/simplest-way-to-detect-a-mobile-device.
After that, you can change the repeater layout by using the acf/prepare_field hook like this:
function change_repeater_layout( $field ) {
$field['layout'] = 'block';
return $field;
}
add_filter('acf/prepare_field/name=repeater', 'change_repeater_layout');
I hope this helps 🙂
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.