Community Events Default Category

Home Forums Calendar Products Community Events Community Events Default Category

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1002769
    Thomas
    Participant

    Hello,

    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.

    #1002949
    Geoff
    Member

    Hi 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!
    Geoff

    #1003129
    Thomas
    Participant

    Thank 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.

    #1003280
    Geoff
    Member

    Hi 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!
    Geoff

    #1003562
    Thomas
    Participant

    Awesome I’ll give it a quick try. Thank you again.

    #1003628
    Geoff
    Member

    Right 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!
    Geoff

    #1004794
    Thomas
    Participant

    Issue resolved.

    Thank you

    #1004885
    Geoff
    Member

    Awesome! 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Community Events Default Category’ is closed to new replies.