Home › Forums › Calendar Products › Community Events › How to add custom fields in Community Events form
- This topic has 6 replies, 2 voices, and was last updated 6 years, 11 months ago by Elke.
-
AuthorPosts
-
April 20, 2017 at 8:46 am #1272202ElkeParticipant
Hi, I´m using Events Calendar and Community Events and I need some new fields in the form for the users, e.g. their name, adress and mail. Is it possible?
Thanks for your help
Greetings
ElkeApril 22, 2017 at 10:57 am #1273123TrishaMemberHello, Elke!
Thank you for using The Events Calendar! I can help with this ?
You can add additional fields by going to ‘Events > Settings’ and clicking on the ‘Additional Fields’ tab. See the screenshot below for a helpful visual.
Does this help answer your question? Let me know how it goes!
Cheers,
TrishaApril 25, 2017 at 5:32 am #1273959ElkeParticipantHey Trisha,
thanks, it works now 🙂April 25, 2017 at 6:27 am #1273992ElkeParticipantNow I have another question. I need this new fields only in the backend, when a user send us a new event. But this fields shouldn´t be seen on the Frontend at the single event view. How can I do this?
And where can I change the layout of the form? There are some black lines and the button is blue.
And I habe to change the time-format into European time.Thanks a lot for your help
ElkeApril 26, 2017 at 8:55 pm #1275053TrishaMemberHi, Elke!
I’m glad this worked for you!
To answer your other questions:
- Use this snippet to hide the code on the front end.
add_action('tribe_get_custom_fields','tribe_hide_custom_meta', 100);
function tribe_hide_custom_meta() {
//If viewing a single event, then return no data
if( tribe_is_event() && !is_admin() ) {
return '';
}
}
- It looks like your theme is overriding some of the styling on the form. You will need to add some custom CSS to get the look you want. The easiest way to add custom CSS is to use the Customizer. When you’re logged in, click on the Customize link at the top of your site. Then go to the bottom of the customizer panel and open the tab that says ‘Additional CSS’. You can add anything you want there.
- To change the time to European format see this snippet https://gist.github.com/andrasguseo/77073707356b4e9bc55e23bb7ebd67bc
Does this help answer your question? Let me know how it goes!
Cheers,
TrishaMay 18, 2017 at 9:35 am #1285704Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team - Use this snippet to hide the code on the front end.
-
AuthorPosts
- The topic ‘How to add custom fields in Community Events form’ is closed to new replies.