Change "Cost" field to "Tickets"

Home Forums Calendar Products Events Calendar PRO Change "Cost" field to "Tickets"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1198321
    Greg
    Participant

    Hi,

    Trying to rename the “Cost” field in single event sidebar meta to say “Tickets” instead

    I read this thread…

    https://theeventscalendar.com/knowledgebase/relabeling-the-venue-organizer-sections-in-event-meta/?source=tri.be&q=/relabeling-the-venueorganizer-sections-in-single-event-view/

    But wonder what is the correct code to hit for the “Cost” attribute?

    Thank you in advance,

    Greg

    #1198581
    Geoff
    Member

    Hi Greg,

    Absolutely, that’s totally possible! I would suggest overriding the modules/meta/details.php template to make that happen. You can learn more about overriding calendar templates in our Themer’s Guide, but it basically boils down to this:

    • Make a copy of the details.php template. It is located at /wp-content/plugins/the-events-calendar/src/views/modules/meta/details.php
    • Make a new folder in your theme called tribe-events
    • Make a new folder in that one called modules
    • Make a new folder in that one called meta
    • Drop your copied details.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, change this line:

    <dt> <?php esc_html_e( 'Cost:', 'the-events-calendar' ) ?> </dt>

    …to this:

    <dt> <?php esc_html_e( 'Tickets:', 'the-events-calendar' ) ?> </dt>

    I do want to caution that your site appears to already be using template overrides. If that’s the case, then you likely already have the folders — and possible even the details.php template — in the theme folder and can skip those steps and make the change to the file that is already there.

    Will this work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1208257
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Change "Cost" field to "Tickets"’ is closed to new replies.