Home › Forums › Ticket Products › Event Tickets Plus › Overriding template for events ticket plus
- This topic has 6 replies, 3 voices, and was last updated 9 years, 3 months ago by
richard.
-
AuthorPosts
-
January 9, 2017 at 3:23 pm #1215384
richard
ParticipantI am trying to override the file “wp-content/plugins/event-tickets-plus/src/views/login-to-purchase.php”.
My child theme is in “wp-content/themes/jobify-child”
I have read all your support posts on “overriding templates” so
I created a folder at “wp-content/themes/jobify-child/tickets/login-to-purchase.php” but it is still using the original plugin file.What is the correct way to override the file “wp-content/plugins/event-tickets-plus/src/views/login-to-purchase.php” ?
TThanks,
RichJanuary 10, 2017 at 1:13 pm #1216092Andras
KeymasterHello Rich,
Thanks for using our plugins and for reaching out to us! A great question you have there.
You are almost right there with the folder.
All template overrides must go into wp-content/themes/{your-theme}/tribe-events/ so in your case that should be:
wp-content/themes/jobify-child/tribe-events/tickets/login-to-purchase.php
Check and let me know if this helps.
Cheers,
AndrasJanuary 11, 2017 at 4:58 pm #1217071richard
ParticipantI actually mis-typed the original message. The custom file is located at “/wp-content/themes/jobify-child/tribe-events/tickets/login-to-purchase.php” but the page is still showing the content from the orginal file.
Rich
January 13, 2017 at 12:59 pm #1218309Andras
KeymasterHello Rich,
I looked into that, if you put the file into /wp-content/themes/jobify-child/tribe-events/login-to-purchase.php then it should work. Tested it successfully on my test install.
Does this solve it for you?
Andras
January 18, 2017 at 11:38 am #1220361richard
ParticipantYes that one worked.
FYI – Your previous reply said to use: “wp-content/themes/jobify-child/tribe-events/tickets/login-to-purchase.php” which has the folder “tickets” added to the path.
I believe your original answer is also what the documentation (https://theeventscalendar.com/knowledgebase/themers-guide/) says to do.
Create a new folder inside /tribe-events for specific premium addons:
Community Events: /tribe-events/community/
Events Calendar Pro: /tribe-events/pro/
Event Tickets: /tribe-events/tickets/
Filter Bar: /tribe-events/filter-barAccording to that documentation, since I was overriding the file: wp-content/plugins/event-tickets-plus/src/views/login-to-purchase.php
I thought, like you,that I should have placed the overriding file in : “wp-content/themes/jobify-child/tribe-events/tickets” not in “wp-content/themes/jobify-child/tribe-events/”Does that mean the documentation is wrong or do you only use subfolders for those 4 specific add-ons and for all your other plugins, like “Event Tickets Plus”, you put overrides in the parent folder “wp-content/themes/[your-theme]/tribe-events” ?
Thanks,
RichJanuary 19, 2017 at 1:41 am #1220823Andras
KeymasterHey Rich,
Happy to hear this solved it for you and it works!
I believe that our documentation could be clearer on this issue as you need to use subfolders for the specific addons, or rather the for the subfolders in wp-content\plugins\event-tickets-plus\src\views\
I’ll flag the team to add proper override instructions in the header of this file.
Since this topic is resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic in the forum and we will help you out.
Cheers,
AndrasPS: If you like our plugin, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
https://wordpress.org/support/view/plugin-reviews/the-events-calendar
https://wordpress.org/support/view/plugin-reviews/event-ticketsPS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!
-
AuthorPosts
- The topic ‘Overriding template for events ticket plus’ is closed to new replies.
