Simple Calendar (aka Google Calendar Events)
Trim or truncate description in list display (4 posts)

  1. David Radovanovic
    Posted 1 year ago #

    Currently using:

    [google-calendar-events id="1" type="list" title="Events on" max="10"]

    which works beautifully.

    Anyway to truncate or trim the description since the individual descriptions are very long and a smaller excerpt would be more user-friendly.

    http://www.esopuscreekconservancy.org/ see left column for example.



  2. Ross Hanney
    Plugin Contributor

    Posted 1 year ago #

    Hello David,

    In the plugin settings, under "Display Options", in the event display builder field, adjust the [description] shortcode as below:

    [description limit="15"]

    Replacing 15 with whatever word limit suits your needs.

  3. David Radovanovic
    Posted 1 year ago #

    this is an awesome google calendar plugin... thank you!

  4. jontoivo
    Posted 1 year ago #

    Hi Ross,

    The word limit attribute works great.

    If you plan to further develop it, limiting the display text to the first paragraph </p> or line break <br> in the event description would be very useful as well.

    Thank you so much for your work! We're a Danish youth NGO with very limited resources, but this plugin makes it possible for us to integrate our new website to Google Calendar, while making it look less like the garage-made project it really is.

    Google Calendar Events in action

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Calendar (aka Google Calendar Events)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic