Events and Classes

Home Forums Calendar Products Events Calendar PRO Events and Classes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #948320
    Yogasara
    Participant

    Hello,

    This is my first support topic, so please bear with me.

    I’m not massively savvy, so please be gentle. I’ve a got a little bit of knowledge and I’m just helping my dad update the site for his yoga studio.

    I’ve had a look through the knowledge base and through the previous discussions, but I didn’t manage to find anything that quite fits the question I have.

    There is plenty of information about changing the word ‘event/s’ to ‘class/es’, ‘organiser/s’ to ‘teacher/s’, but what if you want to use both iterations? There are of course classes and teachers at the yoga studio, but it is also hired out for events by organisers. All of the methods I’ve seen involved changing the words across the entire site, or not at all. Is it possible to choose individually for each event?

    Thanks in advance.

    #948348
    George
    Participant

    Hey Christopher,

    As far as I can think of, getting things to work as you’ve described would require a decent amount of custom code. To be more specific, let’s say you start with the basic code in the following Gist in your theme’s functions.php file → https://gist.github.com/momnt/c12fa0f68ef5959794ae

    That will make “Event/s” “Class/es” and “Organizer/s” “Teacher/s”.

    The trick from there is to then conditionally prevent these changes from happening – this can be done, and one idea I can think of is to maybe use Event Categories – simply categorize yoga classes as “Yoga Classes” and non-class events as “Misc. Events” or something.

    And then depending on the category of a given event, change the labels accordingly.

    However, this would really only work on single events. Look at all the other places where these labels appear, for example, see this screenshot → https://cloudup.com/cIzi1kSvcbC

    Changing those instances of the labels is not as easy, because those labels are not necessarily tied to what a single event is doing – they’re “general” labels, you know?

    Does all this make sense so far? Basically: changing labels for each event on a per-event label is possible, and if you’re up to it I can happily share code with you to do so.

    But changing the “General” labels isn’t so easy, and just leaving those as one or the other as a default – either “Events” or “Classes” – is much easier and more stable.

    For example, if you don’t have many “non-class Events”, then making the default labels Class/es and Teacher/s might be the best and simplest option. Then, for non-class Events, maybe in the title of the event you could preface it with “Special Event:” or something – and then for this specific non-class event itself, if someone clicks to it, then the labels will say “Event” and “Organizer” on that single-event page instead of “Class” and “Organizer”. But back on the main calendar page with all the other events that includes yoga classes, “Classes” will show up in most spots, like in the places in my screenshot from above → https://cloudup.com/cIzi1kSvcbC

    I’m really sorry for how long this message is, I’m just trying to get across my thoughts on this and some possible solutions for making things work on your site with as little code disruption as possible. Please let us know if anything here helps, and if something doesn’t make sense, let us know and I’ll try to clarify things!

    Thanks Christopher,
    George

    #949683
    Yogasara
    Participant

    Sorry for the slow reply. Thank you for taking the time to give such a thorough response. I’ll have a chat with the big man and explain the possibilities, and suggest what I think would be best, and see what he says.

    #949723
    George
    Participant

    Cool! Keep us posted Christopher.

    — George

    #955791
    Yogasara
    Participant

    Hi,

    I’m just going to shelve this for the moment and come back to it after I’ve got the plugin working in a basic fashion (I’m going to start a new thread for that).

    Thanks for your patience.

    #956275
    George
    Participant

    Thanks for the update Christopher – in that case, I will close this ticket, but when you open a new ticket, link back to this one for reference if you think of it…

    Cheers!
    George

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Events and Classes’ is closed to new replies.