Move or remove previous and next links on single event page

Home Forums Calendar Products Events Calendar PRO Move or remove previous and next links on single event page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1374916
    Marguerite Esmonde
    Participant

    I am trying to find out how I can move the previous and next event links that show up on a single event page right below the date and time. They confuse my site users all the time, so I would like to be able to move them to the bottom of the page, or get rid of them. I don’t want to hide them with CSS. I would rather be able to control where on the page they appear.

    I have searched the forums and found older posts that say what the code is, but that code does not seem to be in any of my files.

    https://www.vmahs.org/calendar/blankets-st-marys-franciscan-shelter/

    Where is the code that controls those links? Appreciate any guidance. Thanks.

    #1374953
    Marguerite Esmonde
    Participant

    I think I am also confused as to what template is being used, v=because I have tried editing what I thought was right and I don’t see any changes.

    Does the page I linked to use single-event.php, and if so in what folder should that be located?

    #1375112
    Jennifer
    Keymaster

    Hi Marguerite,

    Thanks for reaching out!

    The code for previous and next links on single events can be found at wp-content/plugins/the-events-calendar/src/views/single-event.php in the “Event footer” section at the bottom of the file:

    You can move this to another part of the template or remove it entirely. To edit this template, you’ll want to follow these instructions to copy it into your child theme. The page you linked to does indeed use the single-event.php file found in the location that I mentioned above. Once you copy it into the tribe-events folder in your child theme (the instructions outline how to do this), then you can edit it and that template will override the default one.

    Let me know if that works!

    Thanks,

    Jennifer

    #1376201
    Marguerite Esmonde
    Participant

    I don’t seem to have the file wp-content/plugins/the-events-calendar/src/views/single-event.php.

    I have a single-event.php in the folder plugins/events-calendar-pro/src/views/pro/week, and one in plugins/events-calendar-pro/src/views/pro/photo, and one in plugins/events-calendar-pro/src/views/pro/widgets/modules

    None of them seem to contain the code you pasted in.

    Can you help straighten me out? Thanks.

    #1376235
    Marguerite Esmonde
    Participant

    OK I found the file in the-events-calendar folder. I was expecting it to be in pro. I think I’m good now. Thanks!

    #1376344
    Jennifer
    Keymaster

    Hi Marguerite,

    I’m glad to hear you got it figured out! Since this thread has been marked “resolved”, I’ll go ahead and close it out. Please feel free to open up a new one if you have any further questions!

    Thanks,

    Jennifer

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Move or remove previous and next links on single event page’ is closed to new replies.