Support

Account

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 🙂