remove tribe-events-nav-previous if event has past

Home Forums Calendar Products Events Calendar PRO remove tribe-events-nav-previous if event has past

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1385195
    Tristan
    Participant

    Hi there,

    At the foot of an upcoming event there is two links, previous event and next event inside the tribe events footer.

    Is there any way to stop it showing the link to the previous event if the event has passed under this div, tribe-events-nav-previous?

    To expand, the last event we had listed in the calendar was the 15th October the next event isn’t until July 2018 so the events for next year (1 currently) all show this past event and is no longer relevant and it would be helpful to either remove or hide this link until such times we add more events.

    Or is it a case of using css as a temporary measure?

    Thank you as always

    Tristan

    #1386914
    Jennifer
    Keymaster

    Hi Tristan,

    Thanks for reaching out! Unfortunately I think this will be a bit more difficult than it may seem if you are wanting to hide the “previous event” link on an event based on whether or not the event before it has passed or not. There isn’t any CSS I can give you to target the link based on the previous event.

    If you’d like to do it with a customization, our themer’s guide is the place to start! We’re not able to do customizations for you, but if you get stuck or have any questions, please let me know! I’ll be happy to point you in the right direction.

    Your best bet (and simplest solution) may be to remove the previous event link entirely, regardless of whether or not the previous event has passed. I’m sorry I don’t have a better answer for you, but I hope this helps!

    Thanks,

    Jennifer

    #1386959
    Tristan
    Participant

    Hi Jennifer,

    Thank you for the info. I shall have a play and see what I can come up with.

    Best wishes

    Tristan

    #1387289
    Jennifer
    Keymaster

    Awesome, just let me know if you come up with any questions!

    #1403691
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘remove tribe-events-nav-previous if event has past’ is closed to new replies.