User-determined length of excerpt in list view

Home Forums Calendar Products Events Calendar PRO User-determined length of excerpt in list view

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1494640
    Laura
    Participant

    In our list view we want to be able to control how long each event looks in the list view. Is there a way we can set things up so 1) the image is smaller for the events we want to be smaller? or 2) the “Find out more” link comes earlier in the excerpted text?

    We want events that recur weekly to be smaller and the one-time events to have a bigger presence.

    I am also hoping for a solution that doesn’t require editing our code. We aren’t at that level…

    #1495182
    Victor
    Member

    Hi Laura!

    Thanks for getting in touch with us! Let me help you with this topic.

    You can modify the excerpt length, but would require a snippet like the following to be placed in your theme’s functions.php file:

    function custom_excerpt_length( $length ) {
       return 30;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    the image is smaller for the events we want to be smaller?

    Unfortunately, there is no built-in option to modify the image size. You can add some custom CSS to reduce the image sizes, but this will apply to all the events in the list, not just the ones you want.

    Following our Themer’s Guide > https://theeventscalendar.com/knowledgebase/themers-guide/, you can customize the look and feel of our templates, but it requires some custom coding.

    I hope that helps. Let me know if any follow up questions.

    Best,
    Victor

    #1515992
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘User-determined length of excerpt in list view’ is closed to new replies.