Customizing Shortcode Output

Home Forums Calendar Products Events Calendar PRO Customizing Shortcode Output

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1233442
    Kristen
    Participant

    I 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!

    #1234156
    George
    Participant

    Hey 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,
    George

    #1234444
    Kristen
    Participant

    I 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?

    #1234919
    Kristen
    Participant

    Also, 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.

    #1235853
    George
    Participant

    Hey 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

    #1239363
    Kristen
    Participant

    Setting the number of events to display worked for now, but I hope you’ll integrate the argument into the shortcode. Thanks!

    #1240163
    George
    Participant

    I appreciate the feedback, Kristen, and do agree that it should be easier to specify a number!

    Best of luck with your project,
    George

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Customizing Shortcode Output’ is closed to new replies.