• Resolved rossoonline

    (@rossoonline)


    Hi,

    I am using the Events Calendar and have various pages that cover several events displayed on it. Because of this, I have removed the link in the events calendar. To link to a custom page for each event I was writing a description for the tooltip and adding a “read more” link to the end of it. However, any HTML seems to be removed before it gets displays, so the link doesn’t work.

    I can see the relevant code in tooltip.php that I want to edit:

    <div class=”tribe-event-description”>[[=raw excerpt]]</div>

    From my understanding, having the “raw” attribute should mean that the description comes out with the HTML, but it doesn’t. What can I do to change this?

    Thanks in advance.

    Ross

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter rossoonline

    (@rossoonline)

    Update: I read that the Events Calendar uses the_excerpt functionality built into wordpress so that has to be edited. I followed the page at https://wordpress.stackexchange.com/questions/141125/allow-html-in-excerpt to allow HTML to be included but this isn’t working either.

    Thread Starter rossoonline

    (@rossoonline)

    I figured it out. Events Calendar now uses its own excerpt function so the info on the net about it is no longer relevant.

    The Event Calendar’s own excerpt function can be found in /wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php on line 1326.

    I simply commented out line 1414 that read:

    $excerpt = wp_trim_words( $excerpt, $excerpt_length, $excerpt_more );

    GeoffBel

    (@geoffbel)

    Hey @rossoonline,

    Stellar work. Kudos on figuring things out and sharing it!

    You are welcome back in our support forums any time ??

    For now, I am going to close this thread.

    Have a great weekend!

    Geoff B.

    Nancy

    (@dotdabbledorg)

    So I have a very similar issue, not sure if it’s the same or not, since rossoonline’s solution didn’t work for us.

    We want to show html (links, paragraphs, etc) in the excerpts both on the tooltip, and also on the Events List page (where their are excerpts for each event.

    I had also determined that Event Cal is using a custom excerpt function (other excerpts on our site show html), but I can’t figure out where the function is stripping the html out.

    I tried making the change noted above, and uploading the updated file to tribe-events/functions/template-tags within my theme. Did I not upload it to the right place, or am I trying to do something different? I didn’t think wp_trim_words removed html.

    Thanks!

    • This reply was modified 8 years ago by Nancy.
    shelbelliott

    (@shelbelliott)

    Hey Nancy,

    Can you please open a separate thread so that we can better assist you?

    Thanks!

    Shelby

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add read more link in tooltip text’ is closed to new replies.