Home › Forums › Calendar Products › Community Events › Community Events Default Category
- This topic has 7 replies, 2 voices, and was last updated 10 years, 7 months ago by
Geoff.
-
AuthorPosts
-
September 7, 2015 at 8:36 pm #1002769
Thomas
ParticipantHello,
We are in the process of implementing Community Events into a Event Calendar Pro website. However, due to our clients workflow, we need to ensure that all community events use a default event category. We need to eliminate all users ability to choose an event category and ensure that they are assigned to a default category.
Please advise,
Tom D.
September 8, 2015 at 9:00 am #1002949Geoff
MemberHi Thomas and welcome to the forums!
Really good question. I’m afraid there is no setting for a default category in Community Events at the moment. However, I would imagine it is possible to pre-select any category on the Community Events submission form using jQuery–something like this:
`$(“#checkboxid”).prop(‘checked’, true);`
Sorry for the bad news but I hope that perhaps the idea here will at least steer you in a direction to work around it.
Thanks!
GeoffSeptember 8, 2015 at 7:14 pm #1003129Thomas
ParticipantThank you for your response. I imagined that was the likely solution. Alternatively, would it be possible to remove the category section all together and allow the administrator to assign an appropriate category during their review?
If so, could you guide me to the proper section to remove? Thank you very much.
September 9, 2015 at 7:51 am #1003280Geoff
MemberHi Thomas,
Yeah, that’s totally possible! Try adding this to your theme’s style.css file or — better yet — in a separate stylesheet for the calendar:
#event_taxonomy { display: none; }Cheers!
GeoffSeptember 9, 2015 at 7:35 pm #1003562Thomas
ParticipantAwesome I’ll give it a quick try. Thank you again.
September 10, 2015 at 6:56 am #1003628Geoff
MemberRight on and my pleasure! That did the trick for me, but it’s certainly possible that you may need to find a more exact CSS class or ID that does the trick–either way, the same principle will apply with using display: none; to hide the box.
We also have this post on how to use DevTools to locate CSS classes–though it sounds like you’re already on top of things. 🙂
Cheers!
GeoffSeptember 14, 2015 at 6:36 am #1004794Thomas
ParticipantIssue resolved.
Thank you
September 14, 2015 at 8:52 am #1004885Geoff
MemberAwesome! Thanks a ton for checking in and letting me know, Thomas! Feel free to hit us back up if any other questions pop up and we’d be happy to help. 🙂
Cheers!
Geoff -
AuthorPosts
- The topic ‘Community Events Default Category’ is closed to new replies.
