4.0, Day View: Now Showing Full Description, Not Excerpt of Description

Home Forums Calendar Products Events Calendar PRO 4.0, Day View: Now Showing Full Description, Not Excerpt of Description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1034628
    Anthony
    Participant

    Hello!

    I updated to 4.0. No issues, other than my day view now shows the complete description of each event, rather than just a short paragraph. How can I change it so that it still shows just the shortened description like it did in 3.x?

    Thanks!

    #1034778
    Josh
    Participant

    Hey Anthony,

    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!

    #1034786
    Anthony
    Participant

    Josh,

    Issue resolved; your fix was perfect. Thank you!

    Sincerely,
    Anthony

    #1035543
    Josh
    Participant

    Hey Anthony,

    Awesome! Glad we were able to get this resolved for you!

    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 ‘4.0, Day View: Now Showing Full Description, Not Excerpt of Description’ is closed to new replies.