Home › Forums › Calendar Products › Events Calendar PRO › upcoming events shotcode
- This topic has 5 replies, 3 voices, and was last updated 10 years, 6 months ago by
Support Droid.
-
AuthorPosts
-
October 6, 2015 at 3:15 am #1011804
Brian
ParticipantHello,
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?
ThanksOctober 6, 2015 at 7:58 am #1011918Geoff
MemberHello @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
October 6, 2015 at 1:32 pm #1012042Brian
ParticipantYes 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 ?October 6, 2015 at 3:56 pm #1012073Brian
ParticipantI 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.October 7, 2015 at 6:39 am #1012238Geoff
MemberHi 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.phpThen 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!
GeoffOctober 22, 2015 at 7:05 am #1016865Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘upcoming events shotcode’ is closed to new replies.
