Remove "Never Option" for recurring event

Home Forums Calendar Products Community Events Remove "Never Option" for recurring event

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1094935
    Ty Mulholland
    Participant

    For the community event submission. I need to remove the “Never” option from the end date of the recurring series options. How is this accomplished?

    • This topic was modified 10 years, 1 month ago by Ty Mulholland.
    #1095087
    George
    Participant

    Hey @Torey,

    This is unfortunately not really possible. It would only be possible with writing custom CSS, which we cannot help—but if you can share a link to your site’s Community Events submission page, I’ll be happy to take a look and see what I can recommend!

    Thank you,
    George

    #1095134
    Ty Mulholland
    Participant

    I can write CSS and edit/hack php. I just don’t know how to programmatically remove that option. I can’t find it.

    #1095167
    Ty Mulholland
    Participant

    Ok, I found the file I need to edit. It works just to remove the option within this file.

    /events-calendar-pro/src/admin-views/event-recurrence.php

    Now how do I safely place that in my child-theme so it isn’t overwritten. Doesn’t seem to take the changes when I move it over there.

    • This reply was modified 10 years, 1 month ago by Ty Mulholland.
    #1095191
    Ty Mulholland
    Participant

    After a little bit of research I see this can’t be done easily. I edited the core file, which I now will come back to haunt me.

    Just a warning to Tribe. This value of “Never” is dangerous in the wrong hands – especially for Community Events submissions. It should be an optional value – not standard.

    #1095595
    George
    Participant

    Hey Torey,

    It’s indeed a tricky customization to make. I tinkered a bit and was able to pull it off to a somewhat-satisfactory degree. Try copying and pasting the code snippet from the following Gist into your theme’s functions.php file → https://git.io/vVt9D

    Cheers!
    George

    #1101996
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove "Never Option" for recurring event’ is closed to new replies.