Modifying

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1092842
    Ajay Gilbert
    Participant

    Hi

    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
    AJ

    #1092956
    Geoff
    Member

    Hi 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!
    Geoff

    #1093066
    Ajay Gilbert
    Participant

    Thanks 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
    AJ

    #1093104
    Geoff
    Member

    Awesome, 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,
    Geoff

    #1093301
    Ajay Gilbert
    Participant

    I 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
    AJ

    #1093398
    Geoff
    Member

    Hmm, 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!
    Geoff

    #1093860
    Ajay Gilbert
    Participant

    Nope, that debug option was not selected…

    :-/

    #1093971
    Geoff
    Member

    Well 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,
    Geoff

    #1094378
    Ajay Gilbert
    Participant

    Thanks 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
    AJ

    #1094773
    Geoff
    Member

    You 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

    #1097603
    Ajay Gilbert
    Participant

    Hi 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

    #1097929
    Geoff
    Member

    Thanks 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

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Modifying’ is closed to new replies.