How to hide fields on Submit an Event Form

Home Forums Calendar Products Community Events How to hide fields on Submit an Event Form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #85469
    irishrunner16
    Participant

    Hi. I need to hide some of the fields that are on the Submit an Event form. As I’m a newbie at this I’m hoping that it is a fairly straightforward change?

    I found an existing topic (https://theeventscalendar.com/support/forums/topic/disable-event-image-upload/) that discusses commenting out an entire module on the form. How would I go about removing a single field? For example, if I want to remove the “phone” field from the Event Location Details, would I need to edit \wp-content\plugins\the-events-calendar-community-events\views\community\modules\venue.php?

    #85731
    Casey
    Participant

    Irishrunner16,
    Thanks for reaching out! You can hide fields on the Event Submission form by doing a template override. Here’s how to do this:

    1) Just create the following new directory structure in your theme directory: ‘/tribe-events/community’
    2) After doing that, go to ‘wp-content/plugins/the-events-calendar-community-events/views/community/’ and copy over all files to the new directory you created in Step 1.
    3) Find a file named ‘venue.php’ in the ‘Modules’ folder and find the code that looks like this: https://gist.github.com/ckpicker/73a847ef26ed0cd3252f
    4) Comment out that code using HTML comments

    That should be it! Give that a shot and let me know if it does the trick.

    Thanks!

    #85845
    irishrunner16
    Participant

    Perfect! Thank you SO much for these detailed instructions Casey. This being my first time doing anything like this, I’m happy to say it was fairly simple by following the steps you provided. Again, can’t thank you enough!

    #86083
    Casey
    Participant

    Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5

    Thanks in advance. 🙂

    Cheers,
    Casey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to hide fields on Submit an Event Form’ is closed to new replies.