• Resolved aaronrobb

    (@aaronrobb)


    I’ve installed the Events Calendar plugin, and reading through the Customizing Templates guide makes sense, but I can’t seem to get the edited template files to work.

    I’ve loaded the single-event.php file into the tribe/events/ folder (and tribe/events/v2 folder just in case), and neither work.

    What’s not really explained in the guide is that even though i’m using Events Calendar 5, the single-events.php file is actually not in the v2 folder. The guide makes it seem as though all editable files are in the v2 folder, but the single-events.php file is outside that folder.

    Either way, the edited file won’t work.

    I can edit that file within the plugin folder and I can see the changes I want, so I know that this file is the one I need to edit.
    So – is the folder setup correct for editing the single-events.php file?
    I even tested with the core 2020 theme and 2017 and I can’t make the file work in the 2020 theme.

    Thoughts?

    Also, note to any of the TEC admins – just fyi on this submit ticket page, the “Department” dropdown doesn’t let you click and scroll. When you click on the scroll bar it selects the department block that is directly beside the part of the scroll bar that you click. And then the form itself just sits and thinks once you click Send. Been spinning for 20 minutes now. Using Brave browser. Couldn’t find an actual support email address so can’t really report that to anyone there.

Viewing 1 replies (of 1 total)
  • Martin Taylor

    (@docdunning)

    If you’re not using the block editor, then the single event template is at:
    src/views/single-event.php
    You override it by making a copy in:
    [your-theme]/tribe-events/single-event.php

    If you are using the block editor, the template is at:
    src/views/single-event-blocks.php
    You override this by making a copy in:
    [your-theme]/tribe/events/single-event-blocks.php
    But you might only need to override one of the 7 or 8 sub-templates, which are in:
    src/views/single-event/
    You can override any or all of these by making copies in:
    [your-theme]/tribe/events/single-event/

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t edit single-event.php’ is closed to new replies.