• Resolved locker17

    (@locker17)


    I checked your faqs regarding this but did not find an answer. I have a registration form with two columns. On mobile devices two columns are too wide. So how can I manage it that the form shows the input fields with two columns on desktop and tablet but only one column on mobile?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @locker17,

    Thanks for writing in. Once could you please provide us the url of the form, I will check and get back to you accordingly.

    Regards!

    Thread Starter locker17

    (@locker17)

    Unfortunately I cannot provide you with the url since my page is still in development and not public yet.

    But you can provide me with a link to the documentation to solve that. I think this is from interest for others too and therefore sharing a ‘how to’ doc is the best way to solve this.

    Thread Starter locker17

    (@locker17)

    Do you still come up with a solution for this?

    I tried to make it work with two forms. One for desktop and tablet, and one for mobile. But since I am using Elementor and add your form with a shortcode like this “[user_registration_login redirect_url=”https://site.com/page-slug”%5D” I can’t set conditions where to show which form.

    Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @locker17,

    We’ve added your request as a feature and will work on it in a future update of the plugin.

    In the meantime, we will provide code to render the registration forms based on the device.

    add_filter( 'user_registration_render_registration_form', function( $form_id ){
    if (wp_is_mobile()) {
    $form_id="123";
    } else {
    $form_id="124";
    }
    return $form_id;
    });


    Note: Please replace the form ID with your own. You only need to insert one shortcode on the page, and it will automatically adjust based on the device.

    Also please download and install the plugin from this link: https://encl.io/t/TFjnaUPmL74#9Ce6iwq6crqzgLlGhBeU_w

    Do let us know whether it works for you or not and I will get back to you.

    Regards!

    Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @locker17,

    Since we haven’t heard from you in a while, I’m going to go ahead and conclude this thread for now. However, if you have any further questions or if there’s anything else we can assist you with, please feel free to continue the conversation.

    Regards!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.