Home › Forums › Calendar Products › Community Events › How to hide fields on Submit an Event Form
- This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by Casey.
-
AuthorPosts
-
January 1, 2014 at 6:29 am #85469irishrunner16Participant
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?
January 2, 2014 at 1:08 pm #85731CaseyParticipantIrishrunner16,
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 commentsThat should be it! Give that a shot and let me know if it does the trick.
Thanks!
January 2, 2014 at 4:44 pm #85845irishrunner16ParticipantPerfect! 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!
January 3, 2014 at 6:23 am #86083CaseyParticipantThanks 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 -
AuthorPosts
- The topic ‘How to hide fields on Submit an Event Form’ is closed to new replies.