Photo view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #950702
    charrame
    Participant

    HI,

    I have some questions, both of them for the photo view:

    1) How Can I do if I want to show more than 10 events?

    2) How Can I do to reduce de the text un of the events in this view?

    thanks!

    #950790
    Geoff
    Member

    Hi there Adrian! Welcome back to the forums. Let’s take a look at your questions.

    1) How Can I do if I want to show more than 10 events?

    The number of events can be increased on the Events > Settings screen. In the General Settings section, there is an option to set the number of events you would like to display per page. Change this, save your settings, and you’re good to go.

    2) How Can I do to reduce de the text un of the events in this view?

    All events respect the Excerpt field in the post editor. If you’d like to have shorter text in Photo View, enter in the text you would like to use in the Excerpt field of the event post.

    Does this help answer your questions? Please let me know. 🙂

    Cheers!
    Geoff

    #950796
    charrame
    Participant

    2) Do you know some way to change the muber of characters or words automaticly?

    Thanks!

    #950804
    Geoff
    Member

    Yes, you could create a custom excerpt length in your function.php file (more on that here), then call that function in the Photo View template, which is located at /plugins/events-calendar-pro/views/pro/photo/single-event.php.

    To do that:

    • Copy that file
    • Make a new folder in your theme directory called tribe-events
    • Make a folder in that one called pro
    • Make a folder in that one called photo
    • Drop your copied single-view.php file in that last folder

    Now that your template is in your theme folder, you can modify it to suit your needs. In this case, Change out Line 52 with your new custom excerpt:

    <?php echo tribe_events_get_the_excerpt() ?>

    Cheers!
    Geoff

    #954328
    Geoff
    Member

    Hey there, Adrian! This thread has been quiet for a couple of weeks, so I’m going to go ahead and close it. Please feel free to hit us up with a new thread if you still have questions here and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Photo view’ is closed to new replies.