Move Event HTML Location

Home Forums Calendar Products Events Calendar PRO Move Event HTML Location

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #267915
    persyst
    Participant

    How can I move the Event HTML I added under the Display Tab, “Add HTML before event content” so that it appears in between the “Event Title” and the “Event Description”?
    Thanks,
    Stefan

    #268023

    Hi, Thanks for reaching out to us with your question!

    The before and after content is rendered onto the page from the use of the template functions tribe_events_before_html and tribe_events_after_html. These functions get called as part of the template /views/default-template.php.

    To change where the content is rendered you will have to update the templates and move the tribe_events_before_html function call into the /views/single-event.php template.

    We have a Themer’s Guide that walks through how to customize templates and other functionality that should be of use to you. Please let me know if this helps you make the changes you are looking for.

    – Matthew

    #271081
    persyst
    Participant

    Thanks for the reply. I noticed there are two single-event.php files.
    Location 1:
    /wp-content/plugins/the-events-calendar/views/single-event.php

    Location 2:
    /wp-content/plugins/the-events-calendar/views/list/single-event.php

    Could you please tell me why there are two files and which one am I supposed to copy/make changes to?

    Thanks,
    Stefan

    #271773

    Hi Stefan:

    In this case you want to modify the single-event.php  file in the first location.

    /wp-content/plugins/the-events-calendar/views/single-event.php

    The second file you specified is the template for how events are displayed when you are using the list view for the Calendar.

    Please let me know if you have any other issues modifying the before content.

    – Matthew

    #480186

    <div>

    Hi Stefan, I wanted to quickly follow-up with you to see if you are all set or if you have further questions. Please let me know if you do have additional questions I can assist with or if I should go ahead and close this thread.

    Thank you,

    – Matthew

    </div>

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Move Event HTML Location’ is closed to new replies.