Home › Forums › Calendar Products › Events Calendar PRO › Editing single-event template
- This topic has 3 replies, 2 voices, and was last updated 8 years, 11 months ago by
AJ Wilson.
-
AuthorPosts
-
May 10, 2017 at 8:03 am #1281664
AJ Wilson
ParticipantI have been trying to modify the look and feel of this page http://41111.rtdproof.com/event/event-a/ but found the template is quite restrictive in making edits. I have been modilfiying the “single-event.php template and had some success in moving items around.
The first issue I have is that with the custom fields I have in the pro version, I want to move these out of the event meta higher up the page but these seem to be locked in code:
<!– Event meta –>
<?php do_action( ‘tribe_events_single_event_before_the_meta’ ) ?>
<?php tribe_get_template_part( ‘modules/meta’ ); ?>
<?php do_action( ‘tribe_events_single_event_after_the_meta’ ) ?>Also I am finding the ticket information and related events are also tied up n this meta information. I simply want the freedom to move these where I would like them to go in the single-event page.
I have tried modifying the additional-fields.php template but there seems to be template inbetween this that I cannot locate.
Can anyone help?
May 16, 2017 at 6:59 pm #1284695Trisha
MemberHello, AJ!
Thank you for using The Events Calendar! I can help with this ?
You’re definitely on the right track!
To start with, modifying the ‘additional-fields.php’ template would involve removing all the content. Go ahead and copy what’s there as you’ll want it for the next step.
After you do that, place the copied content from the additional fields template in the location that you want the additional fields to display.
The only twist here is that you have to define the ‘$fields’ variable since you’re not in the template it expects you to be.
$fields = tribe_get_custom_fields();
You’ll end up with something like this:
https://gist.github.com/trishasalas/b099a3f98c7cb9659663b71ac151aef4Of course, you can change the markup in there to suit your purposes.
Does this help answer your question? Let me know how it goes!
Cheers,
TrishaJune 7, 2017 at 9:35 am #1294513Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Editing single-event template’ is closed to new replies.
