Skipping first event in event list

Home Forums Calendar Products Events Calendar PRO Skipping first event in event list

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1151163
    Riccardo
    Participant

    I am developing a page draft where the event countdown will show near the upcoming event list widget, so I was wondering if it is possible to build a query for the even list widget/shortcode to skip first upcoming event so it will not load in the list.

    See here: http://prntscr.com/c511sw

    #1151187
    Nico
    Member

    Hi Riccardo,

    Thanks for getting in touch with us! I can help you here ๐Ÿ™‚

    Do you want to hide the first event from all instances of the list widget? Or just the once in that page you are building?

    Maybe a CSS snippet is better than hi-jacking the query:

    /* hide first event of a specif list widget */
    /* replace the ID for the actual widget ID */
    #tribe-events-adv-list-widget-2 .type-tribe_events:nth-child(2){
    display:none;
    }

    /* hide first event of all list widget instances */
    .tribe-events-adv-list-widget .type-tribe_events:nth-child(2){
    display:none;
    }

    Please let me know if that helps,
    Have a great weekend,
    Nico

    #1151247
    Riccardo
    Participant

    Tah-dah, Nico! This is a very elegant solution! Thanks, working perfectly!

    #1151703
    Nico
    Member

    Stocked to hear it worked, for this case it’s probably simpler than messing with the query ๐Ÿ™‚

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Hope you have a great week,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Skipping first event in event list’ is closed to new replies.