Home › Forums › Calendar Products › Events Calendar PRO › Modifying
- This topic has 11 replies, 2 voices, and was last updated 10 years ago by
Geoff.
-
AuthorPosts
-
March 23, 2016 at 6:20 am #1092842
Ajay Gilbert
ParticipantHi
been trying to get my head into modifying templates but I really can’t find where I would make a change for example on this page
http://mbc.ajwebwork.com/event/introduction-to-meditation-one-day-course/
so that it doesn’t say ‘Tickets’ but instead says ‘Booking’.Any hints please?
thanks
AJMarch 23, 2016 at 9:51 am #1092956Geoff
MemberHi AJ,
Great question–that Tickets heading is located in the following template:
/plugins/event-tickets-plus/src/views/wootickets/tickets.php
If you create a new folder in your theme directory called tribe-events, then another folder in that one called wootickets, then you can drop a copy of that template in that folder and change this line:
<h2 class="tribe-events-tickets-title"><?php esc_html_e( 'Tickets', 'event-tickets-plus' ) ?></h2>…to this:
<h2 class="tribe-events-tickets-title"><?php esc_html_e( Booking', 'event-tickets-plus' ) ?></h2>Will that work for you? Please let me know. 🙂
Cheers!
GeoffMarch 23, 2016 at 12:47 pm #1093066Ajay Gilbert
ParticipantThanks Geoff
it now says Booking which is great
however, there are these lines of objection underneath:
Warning: include(/var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/../meta.php): failed to open stream: No such file or directory in /var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/tickets.php on line 114
Warning: include(): Failed opening ‘/var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/../meta.php’ for inclusion (include_path=’.:/usr/newage/lib/php’) in /var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/tickets.php on line 114
Warning: include(/var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/../meta.php): failed to open stream: No such file or directory in /var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/tickets.php on line 114
Warning: include(): Failed opening ‘/var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/../meta.php’ for inclusion (include_path=’.:/usr/newage/lib/php’) in /var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/tickets.php on line 114
Warning: include(/var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/../meta.php): failed to open stream: No such file or directory in /var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/tickets.php on line 114
Warning: include(): Failed opening ‘/var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/../meta.php’ for inclusion (include_path=’.:/usr/newage/lib/php’) in /var/sites/m/mbc.ajwebwork.com/public_html/wp-content/themes/Divi/tribe-events/wootickets/tickets.php on line 114
Line 114 is this: include dirname( __FILE__ ) . ‘/../meta.php’;
Any ideas?
thanks
AJMarch 23, 2016 at 1:19 pm #1093104Geoff
MemberAwesome, glad that changed the word!
Do you have WP Debug turned on? If so, you can disable that and the notices should go away.
Thanks,
GeoffMarch 24, 2016 at 2:43 am #1093301Ajay Gilbert
ParticipantI don’t knowingly have WP Debug turned on – looking at that page you linked to, I went to the wp-config.php file and saw this line: define(‘WP_DEBUG’, false);
which implies I don’t have it switched on, true?
Where else should I check?
many thanks
AJMarch 24, 2016 at 7:32 am #1093398Geoff
MemberHmm, I wonder if if the debug settings for the calendar are enabled. Will you please head to Events > Settings, scroll down to the Miscellaneous settings and make sure the Debug mode option (screenshot) is unselected. If it is selected, please go ahead and de-select it, save the settings, and re-check the page for those warning messages.
Thanks!
GeoffMarch 25, 2016 at 2:49 am #1093860Ajay Gilbert
ParticipantNope, that debug option was not selected…
:-/
March 25, 2016 at 7:40 am #1093971Geoff
MemberWell shoot, I was really thinking that would be it. It’s so strange that those errors are showing up on your site but not on my test site when doing the same thing.
Would you be willing to follow the steps outlined in this post for me? If the only things different about our sites are the plugins that are installed and the theme being used, then following these steps will help us figure out where those messages are coming from.
Sorry for the trouble here! This is normally a pretty straightforward change in the template.
Thanks,
GeoffMarch 26, 2016 at 4:12 am #1094378Ajay Gilbert
ParticipantThanks Geoff I will do – but just about to go on holiday for a week, so maybe you could hold back from closing this thread?
Thanks for your help so far.
best wishes
AJMarch 28, 2016 at 8:12 am #1094773Geoff
MemberYou bet! Our system does auto-close threads that are open and unanswered for 2+ weeks, but I certainly will not close the thread myself.
Have a great holiday! That sounds awesome. 🙂
Geoff
April 3, 2016 at 1:37 pm #1097603Ajay Gilbert
ParticipantHi there
I’ll let this one go I think – just something strange happens when I do the child/theme version of the php file. Maybe it’s code-God punishing me for not using a child theme of Divi?
Anyhow, for now, I will just change the plugin’s wording each time its updated.
Thanks for your patience anyhow
AJ
April 4, 2016 at 8:50 am #1097929Geoff
MemberThanks for following up, AJ! Sorry I wasn’t able to nail this one, but your plan to change the wording sounds good. One thing I do whenever I’m forced to modify core code is create a text file outside of the directory that outlines my changes to the code so that I know what I changed and how to change it back for future updates.
Cheers and please do let us know if any other questions pop up–we’d be happy to help. 🙂
Geoff
-
AuthorPosts
- The topic ‘Modifying’ is closed to new replies.
