Whole text of an event instead of an excerpt in list or day view

Home Forums Calendar Products Events Calendar PRO Whole text of an event instead of an excerpt in list or day view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1036227
    Hans-Gerd
    Participant

    Hello,
    we are testing the new version 4.0 on our local server.
    Unfortunately the whole text of an event appears instead of an excerpt in list and day view (of course the whole text is displayed in single view).
    We are using the theme enfold, but the problem also appears when I switch to another theme, for example evolve, logger, twenty fourteen or twenty fifteen.
    I will send you the system information later.
    Any idea to solve the problem ?

    Sincerely
    Hans-Gerd

    • This topic was modified 10 years, 4 months ago by Hans-Gerd. Reason: also twenty fourteen
    #1036229
    Hans-Gerd
    Participant

    This reply is private.

    #1036444
    Hans-Gerd
    Participant

    Hello,
    sorry: I just noticed, that I have posted in wrong category.
    This should be posted in “events calendar pro” instead of “community events”.

    Sincerely
    Hans-Gerd

    #1036523
    Brian
    Member

    Hey,

    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!

    #1036579
    Hans-Gerd
    Participant

    Hey Brian,
    thanks – it works.
    Best regards

    Hans-Gerd

    #1036615
    Brian
    Member

    Great, glad it helps, this will be fixed in 4.0.1 too.

    I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Whole text of an event instead of an excerpt in list or day view’ is closed to new replies.