Home › Forums › Calendar Products › Events Calendar PRO › Show the month in list view
- This topic has 3 replies, 3 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
April 15, 2016 at 2:37 pm #1103254
Lawrence
ParticipantI’m using this code to display all upcoming events:
[tribe_events_list categories="Classes,Workshops" venue="yes"]However, the display only shows the day of the week and the date of the month, but not the month itself (see enclosed image). Can this be added easily?
Thanks,
GeoffApril 15, 2016 at 2:47 pm #1103257Lawrence
ParticipantI’d almost prefer to use the list that’s available at /events/list/ but I cannot figure out how to add text before the list. Is it possible to customize that page specifically? Ideally, I’d like to show the list view at /events/list/ filtered by categories (permitting two categories, if possible) and having a custom paragraph before each list. Thanks!
April 16, 2016 at 9:02 am #1103437George
ParticipantHey Geoff,
Thanks for reaching out!
In regards to your first question, no, the list view shortcode that you are using there cannot be easily modified to show the month view.
As for adding content before the list view, yes, you can do this but it would unfortunately require writing custom code.
I say “unfortunately” because we cannot help with writing custom code. So, for wiring up something with category filters and different text for each category and all of that, you will have to take the reins on implementing this custom design and either the write the code yourself or hire a professional to assist you.
That being said, there is one thing I can try to recommend here at list, which should be helpful.
These are the two general methods you can use for adding content to before your list view only:
#1 Snippet
Paste this into your theme’s functions.php file, and tweak it to reflect your custom design goals:
add_action( 'tribe_events_before_view', 'tribe_add_content_before_list_view' );function tribe_add_content_before_list_view( $template_file ) {
$pathinfo = pathinfo( $template_file );if ( empty( $pathinfo ) || ! isset( $pathinfo['filename'] ) )
return;if ( 'list' == $pathinfo['filename'] ) {
printf( 'Here is your list view content!
');
}
}
#2 Template Modification (RECOMMENDED)
Make a custom theme template version of this plugin view:
the-events-calendar/src/views/list/content.phpYou can learn how to do this by reading this guide here → https://theeventscalendar.com/knowledgebase/themers-guide/
If you decide to hire a professional to build the custom designs for you, then one thing that might help is this list of great developers here → http://m.tri.be/18k1 (we have no affiliation with any of these folks—they’re simply some well-respected names in the community that we’ve compiled to share).
Best of luck with your customizing!
GeorgeMay 1, 2016 at 9:35 am #1109289Support 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 ‘Show the month in list view’ is closed to new replies.
