Can't seem to make the Calendar and Events views work right.

Home Forums Calendar Products Events Calendar PRO Can't seem to make the Calendar and Events views work right.

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #33184
    Jonah
    Participant

    Hi Laura,

    You might try contacting Michael @ WP Bakery. He’s pretty good at getting back to people and addressing issues with his plugin.

    The closest thing I can think of to get the mini-cal to reload is to use a jQuery trigger function to trigger clicking the months. I can’t figure out how to trigger one after the other though, only one or the other. So I’m checking with one of our developers to get some help on this. Stay tuned.

    Thanks,
    Jonah

    #33205
    Laura
    Participant

    Thanks Jonah. If you click to the next month, it loads. Then you can click back and it is correct.

    #33226
    Jonah
    Participant

    Hi Laura,

    Here’s a hack that should get this working for you.

    1. First create a folder labeled ‘js’ in your theme.
    2. Then create a file ‘mini-cal-hack.js’ and put this code in it:

    jQuery(document).ready(function($) {
    $('#calendar_wrap a.next-month').trigger('click');
    setTimeout(function(){ $('#calendar_wrap a.prev-month').trigger('click'); }, 1000);
    });

    3. Then place this code in your theme’s functions.php file to load it:

    /*-----------------------------------------------------------------------------------*/
    /* Add Menu Page Script
    /*-----------------------------------------------------------------------------------*/
    add_action("wp_enqueue_scripts", "mini_cal_hack");
    function mini_cal_hack() {
    wp_enqueue_script('mini-cal-hack', get_stylesheet_directory_uri() . '/js/mini-cal-hack.js', array('jquery'), '1.0', true);
    }

    Let me know whether or not that works for you.

    Thanks,
    Jonah

    #33235
    Laura
    Participant

    Well, that definitely moves the month. It jumps to March then kind of flutters and jumps back to January completely skipping the current month.

    #33236
    Jonah
    Participant

    Hi Laura,

    Try changing the 1000 timeout to 2000 or 3000 which is 1 or 2 or 3 seconds delay before it switches the month.

    – Jonah

    #33237
    Laura
    Participant

    3000 worked! Thank you so much for your help. You guys are fabulous.

    #33238
    Jonah
    Participant

    You’re welcome Laura, let us know if there’s anything else you need help with! If you’re happy with the plugin and support you received, we always appreciate and welcome reviews here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar

    Thanks,
    – Jonah

Viewing 7 posts - 16 through 22 (of 22 total)
  • The topic ‘Can't seem to make the Calendar and Events views work right.’ is closed to new replies.