Limit Photo View widget to 3 events

Home Forums Calendar Products Events Calendar PRO Limit Photo View widget to 3 events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1345010
    J Robert McKinney
    Participant

    I am trying to do the exact same thing as this person by limiting the photo view widget to 3 events:

    Limit amount of events on a home page

    In that post, it says its possible. However, the shortcode [tribe_events view=”photo” limit=”3″] does not work for me. If I switch it to list view it works. But it does not limit the events in photo view. You can see under “Upcoming Events” that it’s not working on my dev site: http://webserver.yorklibraries.org/

    Any reason why that shortcode doesn’t work in photo view?

    #1345715
    Geoff B.
    Member

    Good evening J Robert and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    As far as I know, the full view shortcodes do not support the “limit=” argument for now: https://theeventscalendar.com/knowledgebase/embedding-calendar-views-tribe_events-shortcode/

    That argument is only available for widgets: https://theeventscalendar.com/knowledgebase/pro-widget-shortcodes/

    With that in mind, there are a couple ways to work around that:

    1. Use an event category (e.g.: homepage) that you will add to your shortcode. Once that is done, only assign 3 events to that category
    2. Try adding the following CSS rule to your style.css file or in your Custom CSS metabox:
      .home .type-tribe_events+.type-tribe_events+.type-tribe_events+.type-tribe_events {display: none !important;}

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1356218
    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 ‘Limit Photo View widget to 3 events’ is closed to new replies.