Editing single-event template

Home Forums Calendar Products Events Calendar PRO Editing single-event template

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1281664
    AJ Wilson
    Participant

    I 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?

    #1284695
    Trisha
    Member

    Hello, 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/b099a3f98c7cb9659663b71ac151aef4

    Of 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,
    Trisha

    #1294513
    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 ‘Editing single-event template’ is closed to new replies.