• Hi!,

    do you know how i can make this widget only shows the next upcoming event? i have created 10 events that will take place in the future and if i set it to show “upcoming events” it shows ALL 10 events.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    You can add the attribute posts_per_page=1 while adding the widget.

    Guido

    Thread Starter gregkar

    (@gregkar)

    YES!!!! it worked! thanx a lot, now i have another question if you know, the event in my hopepage it is too much aligned on the left side of the page, can i move it a bit to the right?

    Plugin Author Guido

    (@guido07111975)

    Hi,

    For that I should take a look at your site, what’s the URL?

    Guido

    Thread Starter gregkar

    (@gregkar)

    teamkoala.com

    Thanx

    Plugin Author Guido

    (@guido07111975)

    My event list uses the content area of your website, which is quite wide.

    If you want to change the total width of my event list you can add padding on the left and right:

    
    #vsel {width:60%; padding:0 20%;}
    

    But you don’t want this padding in a small mobile screen of course:

    
    @media screen and (max-width:767px) { 
      #vsel {width:100%; padding:0;}
    }
    

    Guido

    Thread Starter gregkar

    (@gregkar)

    sorry for the stupid quetsion but i am a noob.. where should i put the first code?

    Plugin Author Guido

    (@guido07111975)

    Hi,

    When I take a look at the events page of your website I notice you’ve already made some changes to my CSS code. Normally I advice users to add CSS changes on the Custom CSS page in the Customizer in your dashboard.

    Guido

    I am after the same thing, to show a single (next) event. If I set posts_per_page=1 then it only shows one event but the pager appears underneath it. Yes, I can hide that with CSS but I’d rather not have hidden links on the page. Is there a way to do this without the pager showing?
    Thanks
    Tony

    Plugin Author Guido

    (@guido07111975)

    Hi Tony,

    It’s not the most clean way but you can use the widget shortcode because there’s no pagination in the widget. Did not include that because it doesn’t work properly in a sidebar. For upcoming events it’s shortcode [vsel-widget].

    But why not just hide it via custom CSS? I don’t see a problem with that..

    Guido

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Show ONLY next upcoming event’ is closed to new replies.