Home › Forums › Ticket Products › Event Tickets Plus › Template modification
- This topic has 2 replies, 2 voices, and was last updated 9 years, 2 months ago by Brian.
-
AuthorPosts
-
November 24, 2014 at 9:43 pm #897902dkudlerParticipant
Hi! Love the plugin; it’s really solving a problem for us.
We’d like to do a couple of things:
- Display the Past Events archive in descending order, so that the most recent events are at the top.
- We’d like to add a link at the top of the page that reads something like “Click Here to Register” that links to the Tickets DIV. I can’t figure out where or how to add an ID to the template so that I can link to it. Help!
November 25, 2014 at 6:14 am #898129BrianKeymasterHi,
I can help out here for the first request about changing the order of Past Events we have a snippet you can use:
https://gist.github.com/elimn/0be6c4cbcf80b3721c81#file-gistfile1-php
Add that to your theme’s function php and that should take care of it.
We’d like to add a link at the top of the page that reads something like “Click Here to Register” that links to the Tickets DIV. I can’t figure out where or how to add an ID to the template so that I can link to it. Help!
To get this to work you can add a ID to the ticket div by following the themer’s guide:
https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/
Then you can move this file to your theme following the guide for the correct location:
\wootickets\views\wootickets\tickets.php
Once in your theme you can add the id to the form.
If you are looking to edit the single event template you can start with the base template here: (which you can also move to your theme as any file in the view directories of our plugins)
\the-events-calendar\views\single-event.php
Let me know if that helps.
Thanks
January 7, 2015 at 8:41 am #929947BrianKeymasterSince there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Template modification’ is closed to new replies.