• Resolved rolynoworse

    (@rolynoworse)


    Hi,

    When you hover over an entry in Month view sometimes you get the helpful end note “Continue Reading” where the extract is longer than hover pop-up box. However sometimes the text is just cut off in mid sentence.

    Is there any way to force this note to appear every time the word or letter count exceeds the hover box limit?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @rolynoworse,

    Thanks for reaching out!

    You could try adding a snippet like this to your functions.php to increase excerpt size:

    // Changes the escerpt length for events to 100 words
    function custom_excerpt_length( $length ) {
      if( tribe_is_event() && is_archive() ) { 
        return 100;
      }
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Hope that helps!

    Thread Starter rolynoworse

    (@rolynoworse)

    Hi erishel,

    That seems to work, however it displays just a single line before the Continue Reading marker. Also when you click on the Continue Reading marker to view the full details and then click on the All Events link to return to Month view the hover box for each event shows the full text without the Continue Reading marker (hope you can follow this!)

    Many thanks for your help.

    Roland

    Hey Roland,

    You can try adjusting that code snippet to see if it will return what you need. Unfortunately we don’t support plugin customizations. Here’s a knowledge base article that talks a bit about why excerpts can be a real pain sometimes → https://theeventscalendar.com/the-trouble-with-excerpts/.

    Take care,
    Ed ??

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Continue Reading’ is closed to new replies.