Home › Forums › Calendar Products › Events Calendar PRO › Moving template file to child theme?
- This topic has 4 replies, 2 voices, and was last updated 10 years, 5 months ago by
George.
-
AuthorPosts
-
October 31, 2015 at 4:03 pm #1020544
James
ParticipantHi,
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
JamesPs: Event calendar and add ons are great plugins! 🙂
November 2, 2015 at 6:25 am #1020729George
ParticipantHey @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
November 2, 2015 at 11:47 am #1020924James
ParticipantHi 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
November 2, 2015 at 11:58 am #1020929James
ParticipantGeorge,
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
November 2, 2015 at 2:20 pm #1020983George
ParticipantHey 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 -
AuthorPosts
- The topic ‘Moving template file to child theme?’ is closed to new replies.
