• Resolved geekboutique

    (@geekboutique)


    I would like to move the log in form to the top of the bookings table – is this possible?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • You’d need to create a custom version of this file:

    /events-manager/templates/placeholders/bookingform.php

    Just move the chunk of code below to the position in the template where you want the login form to be displayed:

    <?php 
    if( !is_user_logged_in() && get_option('dbem_bookings_login_form') ){
    //User is not logged in, show login form (enabled on settings page)
    em_locate_template('forms/bookingform/login.php',true, array('EM_Event'=>$EM_Event));
    }
    ?>

    This tutorial explains how to create custom templates that are upgrade-safe:

    https://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter geekboutique

    (@geekboutique)

    could I just edit the file? How would i ensure the event used the custom file?

    I am not part of support just some dude…

    Obviously make back-ups of your original files.
    Yes you can just edit the file..
    Do that and figure out how you want it to look…

    But as Caimin stated above…
    “This tutorial explains how to create custom templates that are upgrade-safe:
    https://wp-events-plugin.com/documentation/using-template-files/&#8221;

    if you follow that procedure.. you don’t have to worry about re-editing the file when you do updates of the plugin.

    It’s is pretty straight forward.. sometimes the directory structure…
    is a little confusing.. see the section in the link mentioned above tutorial..
    Common mistakes

    I looked at your websites a couple of days ago they are nice.
    I think you can handle the task ??

    • This reply was modified 6 years, 9 months ago by Robswaimea.

    @geekboutique Now that you’re a Pro member feel free to repost this question on the Pro forums if you still need help with this. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Moving the log in form’ is closed to new replies.