upcoming events shotcode

Home Forums Calendar Products Events Calendar PRO upcoming events shotcode

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1011804
    Brian
    Participant

    Hello,

    I find the widget called events list.
    I’d like to haved it in my home page. That’s why I need a shortcode that would display the next 2 or 3 upcoming events, on my home page.

    Could you please tell me how to do?
    Thanks

    #1011918
    Geoff
    Member

    Hello @Therese, welcome to the forums. šŸ™‚

    There are shortcodes available for all of the PRO widgets, including the Event List, which displays upcoming events by enteringĀ [tribe_events_list] into your page or post.

    Please check out this article for even more information on how the shortcodes work and what options are available for them.

    Does this help? Please let me know!

    Geoff

    #1012042
    Brian
    Participant

    Yes Geoff, it helps a lot.

    However, the formating is very strange…
    A lot of white spaces.
    I’d like to show you 3 screenshots that I took.
    How can I do ?

    #1012073
    Brian
    Participant

    I think the blank was due to the fact that the maps was empty.
    I added some extra informations in the shortcode and now it’s better (address=”no”, phone=”no”,…).

    I still have a question though:
    I’d like to add a small excerpt of the event dsecription.
    Is it possible ?

    I think I have to add a new file called list-widget.php in my theme’s directory, in tribe-events/pro/widgets, is it correct?
    But I don’t know what to add…

    Maybe I should create a new file based on single-event.php?
    And call this file instead?

    Could you please help me?
    Thanks a lot.

    #1012238
    Geoff
    Member

    Hi Therese,

    I’m so glad my last reply did the trick!

    I think the blank was due to the fact that the maps was empty.

    Yeah, spacing is often the result of the widget CSS interacting with the theme’s CSS. Sometimes those clash and need to be tailored a bit to tighten things up.

    I think I have to add a new file called list-widget.php in my theme’s directory, in tribe-events/pro/widgets, is it correct?

    That’s correct! You do need a template override to make that happen.

    This is the template you want to copy from the plugin:
    events-pro/src/views/pro/widgets/modules/single-event.php

    Then add that to your theme directory in:
    tribe-events/pro/widgets/modules/

    From there, you can placeĀ the_excerpt() where you would like it to display in the widget.

    Cheers!
    Geoff

    #1016865
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘upcoming events shotcode’ is closed to new replies.