Home › Forums › Calendar Products › Community Events › change
- This topic has 7 replies, 2 voices, and was last updated 8 years, 5 months ago by
Dynamic Studio S.rl. P.IVA 03724920966.
-
AuthorPosts
-
October 26, 2017 at 10:33 am #1369438
Dynamic Studio S.rl. P.IVA 03724920966
ParticipantHello,
I have two problems:
1) I need to set as NOT required this field Evento Descrizione (richiesto)
2) I need to set ALL DAY EVENT as default without hours but just day
Thanks
Mauro
October 26, 2017 at 10:51 am #1369474Dynamic Studio S.rl. P.IVA 03724920966
ParticipantPoint 1 is solved with this code, but I need to set as required the field CATEGORY (not tag but catagory)
and still problem with point 2
Thanks
Mauro
October 26, 2017 at 11:36 am #1369504Dynamic Studio S.rl. P.IVA 03724920966
Participantpoint 2 is solved with javascript
still to solve category as required and if is possibile to change the category to SELECT (I must for the user to select just one category)
Thanks
Mauro
October 28, 2017 at 6:09 am #1370610Patricia
MemberHey Mauro,
Thank you for reaching out to us!
To set the category field as required, you can use the following snippet:
https://gist.github.com/nefeline/d31bb0053e6ca6507c216fa6d3abd782
You’ll have to replace the ‘post_title’ with ‘tax_input’. You’ll find more info about our form fields here.
To allow your users to select only one category from the drop down menu, you just have to remove the “multiple” option from Community Events submission form.
It’s important that you don’t edit the view files directly in the plugin: you should copy them into your theme first, and edit them there. This will ensure that any modifications you do make will not be overwritten by updating the plugin.
Please copy the taxonomy.php file from:
the-events-calendar-community-events/src/views/community/modules/taxonomy.php
Paste it to:
[your-theme]/tribe-events/community/modules/taxonomy.php
Now open the file and remove the multiple option from line 90.
I hope this helps! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
October 30, 2017 at 5:20 am #1371298Dynamic Studio S.rl. P.IVA 03724920966
ParticipantThanks it works but for both categories and tags, it’s not a problem if I can hide the TAGs section into the form
October 31, 2017 at 5:27 pm #1372589Patricia
MemberHi Mauro,
That’s correct: it will work for both categories and tags. To hide the Event Tags from Community Events submission form, please add the following code in your theme’s style.css file:
.tribe-section.tribe-section-taxonomy ~ .tribe-section.tribe-section-taxonomy { display: none !important; }I hope this helps! Let me know if you have any other questions and I’ll be happy to assist!
Thanks,
Patricia
November 22, 2017 at 8:35 am #1389137Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘change’ is closed to new replies.
