Support » Plugin: The Events Calendar » how to add a view toggle in frontend

  • Resolved esmaeili


    Hi guys,

    I’m trying to add a view toggle on the frontend of the calendar page
    it should toggle between the month and list view.

    your help is highly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter esmaeili


    ended up doing something like this, update me if there’s a better solution possible that I’m missing. I’m using the pro version btw.

    $viewMode = $_GET['view'];
    if($viewMode == 'list') : ?>
        <a href="mesia-events" class="txt-view">Month View</a>
    <?php  echo do_shortcode( '[tribe_events view="list"]' );
    else :  ?>
        <a href="mesia-events/?view=list" class="txt-view">List View</a>
    <?php  echo do_shortcode( '[tribe_events view="Month"]' );
    Plugin Support Eugene Kyale


    Hi @esmaeili,

    Thanks for reaching out. I’m sorry for the late response, we’ve been receiving a high number of tickets hence why its taken this long to respond to you.

    Since you have access to premium support please submit your ticket there next time you have an issue for quicker response.

    Anyway, that being said, lets address the issue in question.

    You actually don’t need to add any custom code to achieve this. The toggle should appear automatically on your main events page as long as you’ve enabled more that 1 view.

    You can find the setting to enable multiple views under Events → Settings → Display

    If this doesn’t solve the issue please submit a ticket on our premium support forum and include the link to this ticket for reference.

    Best regards,

    Plugin Support Masood


    Hi there,

    This thread has been pretty quiet for a while, so we’re going to go ahead and close it. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Have a great day.

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.