Moving template file to child theme?

Home Forums Calendar Products Events Calendar PRO Moving template file to child theme?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1020544
    James
    Participant

    Hi,

    A quick question as I can’t find any information that works in the knowledge base or support pages.

    I wanted to change the wording of the “This Event has Passed” notice on the single event pages. I found the template file which controls this; /wp-content/plugins/the-events-calendar/src/Tribe/Template/Single_Event.php, line 120

    When I copy this file to my child theme /wp-content/themes/Child-Theme and replicate the folder structure, it doesn’t reflect the change on the front end. I tried all possible folder structures within the child theme to see if it works but to no avail.

    How would I do this to make it work from within the child theme?

    Thanks
    James

    Ps: Event calendar and add ons are great plugins! 🙂

    #1020729
    George
    Participant

    Hey @james,

    Thanks for the kind words about our plugins – I’m sorry to bear the news, then, that this file you mentioned is not available for replication in your theme or child theme.

    Notice the file path for this file:

    the-events-calendar/src/Tribe/Template/Single_Event.php

    That is a core plugin file that cannot be modified.

    Only files that are in /src/views can be replicated in themes or child themes, not src/Tribe or any other directory in the plugin.

    I’m really sorry about that James! The implication of this is that, to change that string, you’d have to modify that src/Tribe/Template/Single_Event.php file directly; this will require updating after every time you update the plugin, unfortunately.

    I’m sorry about the bad news; let me know what you think and if I can help with anything else!

    — George

    #1020924
    James
    Participant

    Hi George,

    Thanks for that! It’s not a biggy but it would have been nice to change to suit my sites wording.

    You can go ahead and close this thread.

    Cheers

    James

    #1020929
    James
    Participant

    George,

    There is one other thing you maybe able to help with.

    Since the last updates and the integration with the Avada theme, I noticed that the Google Maps seem to have a small “defect”. The street view and zoom in and zoom out buttons seem to be crunched up and hard to see what they are. Example can be seen here https://www.jamesdoylephoto.com/?p=36522 but it does it on any map.

    Cheers

    James

    #1020983
    George
    Participant

    Hey James,

    I’m sorry about the Google Maps issues since your last Avada theme update; I checked out the link you provided but couldn’t spot anything related to The Events Calendar specifically there. I’d recommend contacting the Avada support team about this, as there might be a CSS change on their end that has led to this or something.

    If that’s not the case and they insist that The Events Calendar is at fault here, open up a new thread about that and include their responses. We’ll pick things up from there and help out!

    Cheers,
    George

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Moving template file to child theme?’ is closed to new replies.