Rearrange different elements in single event page

Home Forums Calendar Products Events Calendar PRO Rearrange different elements in single event page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #59448
    rowandaylor
    Participant

    Hi,
    I have two request.
    1. I want to rearrange different items in the single event page –
    I’d like the ticket box to appear after the text blurb, then detail box and finally the sharing box.

    2. How do I limit the amount of text in the Event List page to, say 60 characters?

    I’m on a tight deadline so I’d really appreciate if you could respond at the earliest opportunity. Thanks so much!

    #59479
    snorton
    Participant

    1. Make a copy of single-event.php (found here: wp-content/plugins/the-events-calendar/views/)to wp-content/themes/[your theme]/tribe-events/ and you can completely override the default single event template.
    2. A few options here: You should be able to use the excerpt field from the event post to control the text in the Event List page. If you want to further limit the amount using a custom excerpt_length filter, you’ll want to add a function to your functions.php for that (see below):
    function custom_excerpt_length( $length ) {
    return 20; //or whatever number you want here
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    -or- you can add the <!–more–> quick tag in the content itself at the exact location you want to truncate the text.

    #59607
    rowandaylor
    Participant

    Thanks mate! Seeing how simple it’s to address it, I feel stupid!

    #60803
    Rob
    Member

    Thanks, snorton!

    #980164
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Rearrange different elements in single event page’ is closed to new replies.