Limit Month View Tooltip text to 20-40 words: excerpt option?

Home Forums Calendar Products Community Events Limit Month View Tooltip text to 20-40 words: excerpt option?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1034737
    Tommy Chamings
    Participant

    Hello!
    I’ve just installed Events Calendar Pro and I’m in the final stages of configuring the plugin to suit my website. How do I limit the hover over box (Tooltip box) for an event on Month View? I’d like to limit to around 20-40 words but currently ALL text added for an event is displayed in the tooltip box.
    Thanks!

    #1034781
    Josh
    Participant

    Hey Tommy,

    Thanks for reaching out to us and bringing this issue to our attention!

    We’ve got this bug logged in our internal tracking system and will notify you here as we make progress on this issue. I apologize for any inconvenience that this issue has caused.

    In the meantime, you can fix this issue by making some quick modifications to the core plugin. These changes will get overridden with the next update which will include an official fix to this issue.

    Within the main Events Calendar plugin, navigate to the src > functions > template-tags > general.php file and open it within your preferred text editor.

    Navigate to line #1320 within that file. It should look like:

    
    $excerpt = wp_trim_excerpt( $excerpt );
    

    You can change that line to be:

    
    $excerpt = wp_trim_words( $excerpt, '55' );
    

    Where “55” is the number of words that you would like the excerpt to be there.

    Let me know if you have any further questions or concerns here.

    Thanks!

    #1034791
    Tommy Chamings
    Participant

    Perfect fix! Thanks Josh!

    #1035545
    Josh
    Participant

    Hey Tommy,

    Awesome! Happy to help.

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Limit Month View Tooltip text to 20-40 words: excerpt option?’ is closed to new replies.