How to load custom template file

Home Forums Calendar Products Events Calendar PRO How to load custom template file

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #973264
    Toru
    Participant

    Hi, I customized your-theme/tribe-events/views/single-event.php, and try to load the customized theme. I read the following document but I don’t get how I can load the customized version.
    https://theeventscalendar.com/knowledgebase/themers-guide/

    It seems that I need to select my theme on “Events template” section, but even I created style.css and index.php for tribe-events theme, the theme still doesn’t show up for the selection.

    Would you please let me know how I can load the customized one?

    Thanking you in advance

    #973280
    Barry
    Member

    Hi Toru,

    For template overrides so long as you create them in the right place they should “just work” without you having to select them via the settings screen.

    Looking at the filepath you provided, though, I think there was a slight mistake:

    your-theme/tribe-events/views/single-event.php

    There is no need for the /views/ segment here. Try:

    your-theme/tribe-events/single-event.php

    Does that help?

    #973285
    Toru
    Participant

    Hi Barry, thank you for your quick response. I checked the file path again and realized I located the file at the wrong place, and it showed up with the path you told me. Thank you for your support!

    #973291
    Barry
    Member

    My pleasure, glad it worked 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to load custom template file’ is closed to new replies.