Overriding template for events ticket plus

Home Forums Ticket Products Event Tickets Plus Overriding template for events ticket plus

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1215384
    richard
    Participant

    I 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,
    Rich

    #1216092
    Andras
    Keymaster

    Hello 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,
    Andras

    #1217071
    richard
    Participant

    I 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

    #1218309
    Andras
    Keymaster

    Hello 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

    #1220361
    richard
    Participant

    Yes 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-bar

    According 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,
    Rich

    #1220823
    Andras
    Keymaster

    Hey 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,
    Andras

    PS: 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-tickets

    PS2: 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!

     

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Overriding template for events ticket plus’ is closed to new replies.