Posted: August 3, 2017 at 5:18 am
|
Hello, I want to override the ticket selector template so i can include theme specific style classes and resturcture its layout. I saw in this post: https://eventespresso.com/topic/ticket-selector-customization-or-better-look-feel/, that it can be done using filters I dont quite understand its usage…Should i replace Please explain how i can do this. Thanks |
Hi there, As mentioned in the other thread you linked to, there is a lot of logic within the ticket selector so we advise against modifying its templates, if you do you’ll nee dot make sure you carry over any changes we make to the default template to your custom template. The templates for the ticket selector can be copied to your themes root directory (I’d recommend creating a child theme if you are not using one already). Or if you prefer to use the filter mentioned above you need to add your own function that returns the full file path for the template you are editing. The filter provided to change the path is expected to be used by developers, it’s a standard WP filter hook: https://www.smashingmagazine.com/2016/01/get-started-with-hooks-wordpress/ |
|
|
Hi, Yes i understand I’ll have to update the modified files with changes when you guys make changes to it. I tried the code you suggested in the other post but its not working…
I get this error:
Obviously, im doing something wrong. Please can you share a sample code i should put in my functions.php so that it will use the templates i have copied to my child theme? Thanks. |
Hi George, The Smashing Magazine article that Tony linked to is loaded with sample code that shows how to use |
|
|
Yes Josh…Sorry, i was doing it wrong. |
The support post ‘Override Ticket Selector Template’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.