Home › Forums › Calendar Products › Events Calendar PRO › List view with shortcode
- This topic has 4 replies, 3 voices, and was last updated 7 years, 11 months ago by Honey Shelton.
-
AuthorPosts
-
June 13, 2016 at 8:11 am #1126114Honey SheltonParticipant
We would love to embed this list view into a page so we can add some other content and tweak the view a bit with css.
I know there’s a shortcode that we can use
[tribe_events_list category="webinars"]
but this doesn’t have the find out more link and doesn’t create month sub-headers, both features we want.How do you recommend we accomplish this?
Worst-case scenario we can add custom css globally to all list views but that doesn’t seem like a very elegant solution.Thanks!
June 13, 2016 at 9:22 am #1126169GeoffMemberHey @hshelton,
Good question. I think the best way to accomplish this is to customize the widget template with one of your own.
There’s much more about how template overrides work here in our Themer’s Guide, but it basically boils down to this:
- Make a copy of the list-widget.php template. It is located at wp-content/plugins/events-calendar-pro/src/views/pro/widgets/list-widget.php.
- Make a new folder in your theme (or child theme) directory called tribe-events
- Make a new folder in that one called pro
- Make one more folder in that one called widgets
- Drop the copied list-widget.php template in that last folder
Now that the template is in your theme files, it can be customized to suit your needs. In this case, you can add in a “Find out more” link and subheaders as you see fit. 🙂
Will this help you get started? Please let me know.
Cheers!
GeoffJune 13, 2016 at 3:47 pm #1126378Honey SheltonParticipantThanks I will investigate that route!
June 14, 2016 at 7:59 am #1126694GeoffMemberRight on, sounds like a plan!
I’ll go ahead and close this thread, but please feel free to open a new one if any other questions pop up and we’d be happy to help. 🙂
Cheers,
Geoff -
AuthorPosts
- The topic ‘List view with shortcode’ is closed to new replies.