• Resolved emcghee

    (@emcghee)


    Hello,

    Love the plugin and have got it mostly set up for use.

    Was just wondering if it is possible to limit the amount of the event description that is shown on each event preview? Can this be limited by lines or characters for example? Or failing that can this be achieved by forcing a standardised hight on each entry?

    Cheers

    Euan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @emcghe,

    You could use a filter to control the length of event description.
    Add this Code in your Active theme’s function.php file:

    function ect_excerpt_length( $length ) {
      if( tribe_is_event()  ) { 
        return 15;
      }
    	return $length;
    }
    add_filter( 'excerpt_length', 'ect_excerpt_length', 999 );

    Thanks

    Thread Starter emcghee

    (@emcghee)

    Thanks for the reply. Unfortunately, I’m just an end user on the site (the administrators are based elsewhere) and I have no immediate access to the PHP files.

    Is there a way to achieve this through CSS? If not I’ll reach out to the site admin and see if they will include the code you suggested above.

    Regards

    Euan

    Hi @emcghee,

    There is no other way to limit the text of Event Description.
    You can’t achieve this through CSS.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event Description’ is closed to new replies.