Overwriting templates in 3.0

Home Forums Calendar Products Events Calendar PRO Overwriting templates in 3.0

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #54442
    ellaearth
    Participant

    Hey,
    I read your notes on overwriting but your paths are totally different to mine and I can seem to get it to work.

    My plugins paths are such (I’m working locally)
    \wp-content\plugins\events-calendar-pro\views
    \wp-content\plugins\the-events-calendar\views

    I see in 3.0 there should be a tribe-events folder in your theme so I have this path
    \wp-content\themes\bpc\tribe-events

    I’ve put the view files in there and made changes but nothing happens. Then I decided to experiment and put it in a views folder within tribe-events but still nothing. Please could you supply me with the correct paths. Thanks.

    #54465
    ivanhi
    Participant

    I’ve done as you \wp-content\themes\mytheme\tribe-events and edit single-event.php and it works. I don’t know if has something to do with you local version.

    But I’ve tried to edit the list view through list/single-event.php and it doesn’t work.

    So almost as same as you

    #54478
    ellaearth
    Participant

    Hey Ivanhi
    I uploaded to a demo site and same issues. I’m currently modifying event pro plugin files as I need to get work done to see changes. But I need to know correct paths for 3.0 so I can copy out the files there. Glad to know I’m not the only one with this issue. Hope we get an answer soon 🙂

    #54858
    Kyle
    Participant

    Hi ellaerth,

    Thank you for your patience!

    When putting templates into bpc/tribe-events, you do not need the /views/ folder, you can drop the files in directly. For example, to override wp-content/plugins/the-events-calendar/views/single-event.php, your override path should be wp-content/themes/bpc/tribe-events/single-event.php

    You will, however, need any folder that resides within the-events-calendar/views/. For instance, if you wanted to modify wp-content/plugins/the-events-calendar/views/list/content.php , your override path would be wp-content/themes/bpc/tribe-events/list/content.php

    I hope this clarifies things a bit for you!

    Cheers,
    Kyle

    #979678
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Overwriting templates in 3.0’ is closed to new replies.