HTML before event content

Home Forums Calendar Products Events Calendar PRO HTML before event content

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #970835
    Pat
    Participant

    Hello, I would like place html content before events on my events/list page and my events/community/add page. My problem is I don’t want the same text on both pages. For each page, I need a unique set of instructions. How can I place unique html content on these pages?

    I have Events Calendar Pro with the Community Events Addon. Thanks

    #971063
    Geoff
    Member

    Hi Pat,

    Great question! Here’s an example of a snippet that can be used in your theme’s functions.php file to add HTML before the calendar. This specific example is written for the Month View, but you could use it for tribe_is_upcoming as well:

    https://gist.github.com/geoffgraham/81479f4ebe4dc6bdbae7

    Yo can target the Community Events pages using a similar snippet but using a condition for those specific pages instead:

    [php]
    if (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page())
    [/php]

    Will that help you get started? Please let me know. 🙂

    Cheers!
    Geoff

    #976092
    Geoff
    Member

    Hey Pat! This thread has been quiet for more than a couple of weeks, so I’m going to go ahead and close it. Please feel free to open a new thread if you still have any other questions here at all and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘HTML before event content’ is closed to new replies.