Hide the previous and the following course

Home Forums Welcome! Pre-Sales Questions Hide the previous and the following course

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1512118
    Fabiana Girotti
    Participant

    How can I hide the previous and the following course on the top of the single course page?

    #1513394
    Jennifer
    Keymaster

    Hi Fabiana,

    You can remove these links by doing a template override – our themer’s guide has some instructions on doing this, and the template you’ll need can be found at wp-content/plugins/the-events-calendar/src/views/single-event.php. Under the “Event header” section, you’ll want to remove the following fro your copy of the template:

    <ul class="tribe-events-sub-nav">
    <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '<span>«</span> %title%' ) ?>
    <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title% <span>»</span>' ) ?>

    If you don’t want to dive into the PHP, you can also hide them with CSS:

    #tribe-events-header .tribe-events-sub-nav {
    display: none;
    }

    Let me know if you have any other questions!

    Thanks,

    Jennifer

    #1529830
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide the previous and the following course’ is closed to new replies.