Tooltips, the_excerpt()

Home Forums Calendar Products Events Calendar PRO Tooltips, the_excerpt()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #943370
    aeg616
    Participant

    Do the tooltips in the month view of the Calendar still use the_excerpt() function in WordPress to display a preview of the event description? I tried applying a filter in my theme’s funcitons.php file to allow certain html tags and it is not working. Even tried apply a length filter and no dice. Just looking for any direction you might be able to provide. Thank you!

    #943405
    Brian
    Member

    Hello,

    The tooltip uses the excerpt, but not the_excerpt.

    The function:

    tribe_events_template_data()

    Is what grabs the data for the tooltip and encodes it.

    That function uses this for the excerpt:

    if ( has_excerpt( $event->ID ) ) {
    $excerpt = $event->post_excerpt;
    } else {
    $excerpt = $event->post_content;
    }

    Found around line 1161 of this file:

    the-events-calendar\public\template-tags\general.php

    You can get some insight on how the tooltip is created by seeing these two pages:

    the-events-calendar\views\month\single-event.php

    the-events-calendar\views\month\tooltip.php

    Let me know if you have any follow up questions.

    Thanks

    #951902
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Tooltips, the_excerpt()’ is closed to new replies.