• Resolved carlosmarugan

    (@carlosmarugan)


    How can I modify the form to create events that comes by default?
    I would like to add some field, like the featured image and hide/remove some others.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Create the directory wp-content/plugin-templates/events-manager/forms and then copy wp-content/plugins/events-manager/forms/event-editor.php to that directory. You can then edit the copy of event-editor.php to make your changes.

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

    Thread Starter carlosmarugan

    (@carlosmarugan)

    Thanks @joneiseman , it was just what i needed.

    Finally i’ve been able to customize my form.

    But thre is a theme that i haven’t been able to solve, the featured image. I have this code for the featured image in the form:

    <section class=”event-form-image <?php echo $template; ?>”>
    <?php if( $EM_Event->can_manage(‘upload_event_images’,’upload_event_images’) ): ?>
    <h3><?php esc_html_e( ‘Event Image’, ‘events-manager’); ?></h3>
    <div class=”input”>
    <?php em_locate_template(‘forms/event/featured-image-public.php’,true); ?>
    </div>
    <?php endif; ?>
    </section>

    But when i load the form, there is not option to upload any image. It’s like this section doesn’t appear.

    Do you know why could it be?

    Thanks again

    The form already allowed image uploads. You don’t need to modify that part of the form.

    Thread Starter carlosmarugan

    (@carlosmarugan)

    Yes, i know. Sorry if maybe i didn’t explain myself well.

    The problem is that the option to upload the photo does not appear in the form, even though it is in the code.

    It must be some error in your modified version of event-editor.php. The original version works fine.

    Thread Starter carlosmarugan

    (@carlosmarugan)

    I’ve just recovered the original file for the event form and i’ve cleared all css but the image selector still doesn’t appear.

    Try removing wp-content/plugin-templates/events-manager/forms/event-editor.php and see if you still see the problem. You don’t see the “Choose File” button?

    Thread Starter carlosmarugan

    (@carlosmarugan)

    yes, still the same problem. I’ve even clear my style.css file, just in case, and nothing.

    I don’t see nothing from the capture you send. The last things i see are the attributes that i’ve created for the event.

    no event url, no category, no image…

    Apparently, there’s some error in your modification to the php file.

    Thread Starter carlosmarugan

    (@carlosmarugan)

    problem solved!

    It was a permissions issue.

    can_manage(‘upload_event_images’,’upload_event_images’) )

    I had to give permissions to the users to use the form and with that the problem has been solved

    thnks @joneiseman

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Modify event form’ is closed to new replies.