• Resolved esmaeili

    (@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

    (@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.

    <?php 
    $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"]' );
    endif;?>

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

    Plugin Support masoodak

    (@masoodak)

    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,
    Masood

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to add a view toggle in frontend’ is closed to new replies.