Problem with Events Calendar

(11 posts) (5 voices)

  1. retiremove

    I have recently installed the latest version of Events Calendar while using construct.
    It all looks good apart from the fact that when I try and advance a month using the tag at the bottom right (currently March), the calendar will not advance and the field at the top left of the calendar (events in) automatically is populated with today's date . See
    When I change the theme to a default theme, there is no problem so I assume it is a theme conflict.
    Any ideas?
    Thanks Neil

    Posted 3 years ago #
  2. Elliott

    Hello retiremove,

    Go ahead and deactivate Cufon in Dashboard -> your theme -> General Settings and then take a screenshot and highlight what is going on.

    Posted 3 years ago #
  3. retiremove

    I have been to Dashboard -> your theme -> General Settings but can see no mention of cufon.
    See attached images to see what is happeneing


    1. Shot-2.png (11.8 KB, 0 downloads) 3 years old
    2. shot-1.png (13.4 KB, 0 downloads) 3 years old
    Posted 3 years ago #
  4. retiremove

    I have disable cufon setting having found it but makes no difference

    Posted 3 years ago #
  5. Elliott

    Try updating Construct to the latest version.

    Have you contacted the plugin authors? I noticed if you refresh the page then the correct month is displayed so it must be something wrong with the AJAX.

    Posted 3 years ago #
  6. retiremove

    Finally got an answer from plugin authors who suggest changing the following in the themes header.php
    <body class="<?php mysite_body_class(); ?>">
    <body <?php body_class(); ?>>

    It does work, but I have no idea what implications this might have on the rest of the theme?
    Is it important?

    Posted 3 years ago #
  7. Elliott

    I see, we'll move this to feature requests and we'll take a look.

    Posted 3 years ago #
  8. retiremove


    Posted 3 years ago #
  9. jasonbahl1

    A lot of other plugins also filter the body_class, so it's important that the body_class() be used in the <body> tag of any WordPress theme. WordPress theme guidelines require the body_class() function to be used (

    Rather than:

    <body class="<?php mysite_body_class(); ?>">

    It should be:

    <body <?php body_class( mysite_body_class() ); ?>>

    Then the function mysite_body_class() in lib/functions/context.php should be modified to return the classes rather than echo the classes.

    This will ensure that all the plugins out there that take advantage of the body_class() filter can do so, and this also makes sure the existing classes that are part of the mysite_body_class function also make their way to the <body> tag as expected.

    Posted 3 years ago #
  10. In a child theme, inside functions.php, add the following

    // Fix mysite_body_class to include WP standard classes
    // @link: <a href="" rel="nofollow"></a>
    add_filter('mysite_filter_body_class', 'include_WP_body_class');
    function include_WP_body_class() {
    	return get_body_class();
    Posted 3 years ago #
  11. cleverdaisies

    Was anything ever resolved with this issue? I tried the fixes here and it still isn't functioning as it should.


    Posted 2 years ago #


You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme