Home › Forums › Calendar Products › Events Calendar PRO › Customizing Shortcode Output
- This topic has 7 replies, 3 voices, and was last updated 9 years, 2 months ago by
Kristen.
-
AuthorPosts
-
February 11, 2017 at 2:21 pm #1233442
Kristen
ParticipantI poked around in the docs but didn’t see how to customize the output of this shortcode:
[tribe_events view=”list” tribe-bar=”false”]
I need to get rid of several things, including the Month / Year header, the Export Events button, etc. I would rather not have to resort to hiding with CSS. I also need to adjust the layout of the events list. Please advise. Thanks!
February 13, 2017 at 3:33 pm #1234156George
ParticipantHey Kristen,
Thanks for reaching out.
It is unfortunately true that the only way to modify the design of things or their output is to use custom CSS and/or the template-customization methods described in our Themer’s Guide.
We are unfortunately not able to provide any assistance with the process of customizing CSS or templates. Please read more about this fact here ? https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/
While we won’t be able to help with customization or design tweaks, I do hope this information helps you move forward with your project. If there are any other issues or questions I can try to help with, please let me know.
Cheers,
GeorgeFebruary 14, 2017 at 6:12 am #1234444Kristen
ParticipantI understand that you can’t help custom code themes, but can you at least tell me which template is used by the [tribe_events view=”list” tribe-bar=”false”] shortcode?
February 14, 2017 at 6:43 pm #1234919Kristen
ParticipantAlso, how can I limit the number of events displayed using that shortcode? I don’t see an argument for it in the docs and using featured is not ideal.
February 15, 2017 at 10:21 am #1235853George
ParticipantHey Kristen,
Sure thing.
To modify the output of the shortcode, you’ll want to use the methods described here: https://theeventscalendar.com/knowledgebase/themers-guide/
The [tribe_events] shortcode just loads/renders the “official” calendar views, so to modify the Month View as displayed by the [tribe_events] shortcode, you would use the methods in the above-linked Themer’s Guide to modify the Month View template files, which you can find within The Events Calendar at this file path:
the-events-calendar/src/views/month/When it comes to limiting the number of events output by the shortcode, there is unfortunately not a way to do this within the shortcode; the shortcode just uses the generic settings defined in the plugin and in the Events → Settings sections in your wp-admin.
So whatever “posts per page” setting you define which applies for the List View general will apply to instances of the list view in the [tribe_events] shortcode like [tribe_events view=”list”]
Please let me know if this information is helpful and if there are any other issues or questions I can try to help with!
— George
February 16, 2017 at 5:52 pm #1239363Kristen
ParticipantSetting the number of events to display worked for now, but I hope you’ll integrate the argument into the shortcode. Thanks!
February 17, 2017 at 9:22 am #1240163George
ParticipantI appreciate the feedback, Kristen, and do agree that it should be easier to specify a number!
Best of luck with your project,
George -
AuthorPosts
- The topic ‘Customizing Shortcode Output’ is closed to new replies.
