Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter predstitans3797

    (@predstitans3797)

    I was able to fix this by changing my header.php
    <body> tag to
    <body <?php body_class($class); ?>>

    and adding

    function add_slug_body_class( $classes ) {
    global $post;
    if ( isset( $post ) ) {
    $classes[] = $post->post_type . '-' . $post->post_name;
    }
    return $classes;
    }
    add_filter( 'body_class', 'add_slug_body_class' );

    to my functions.php code

    Nice work predstitans!

    My theme’s header.php did not have a <body> tag. So I added one, the one you suggested: <body <?php body_class($class); ?>>

    Then, I tested to make sure adding that tag did not break anything. I DID NOT add anything to functions.php.

    Great googlie mooglie, not only did just adding the tag not break anything, all, yes ALL, the navigation issues I was experiencing with The Events Calendar are resolved. When in Month mode the month display changes and the Page number navigation at the bottom of List mode also works (it was returning a 404).

    Thanks predstitans!

    Plugin Contributor leahkoerper

    (@leahkoerper)

    I’m so glad you guys were able to figure things out. Thanks predstitans for sharing your code!

    Cheers,
    Leah

    predstitans3797: YOU ARE A SAINT! I have had this same problem with 4 sites that use this plugin. Thank you!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Month not working on calendar’ is closed to new replies.