Month-View Tooltip Not Working

Home Forums Calendar Products Events Calendar PRO Month-View Tooltip Not Working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1017619
    Josh
    Participant

    Hello,

    Currently, the month-view tooltip is not working. I know it has something to do with my theme, as it works when I switch to another theme. However, I am having trouble tracking it down and was hoping you could help. Based on similar issues on the forum, here are a few things I looked for:

    • No JavaScript errors appear in the console
    • The HTML elements containing the tooltip (that get switched from display:none; to display:block;) are not present on the page
    • In both cases, the jQuery version is the same (jQuery.fn.jquery; returns “1.11.2”)
    • We are not using any caching plugins

    I have included the “Site’s URL” below – the calendar can be found at /calendar.

    Please advise.

    Thanks!

    #1017620
    Josh
    Participant

    Also worth noting that I am experiencing some other JS oddities with this theme that do not produce any errors: https://theeventscalendar.com/support/forums/topic/showcollapse-not-hiding-filters-correctly/

    #1017636
    Josh
    Participant

    I bet you guys love it when people solve their own problems 🙂

    The problem was that the Awake theme uses a custom function ( mysite_body_class() ) for setting body classes instead of the standard body_class(), so any classes added by placing filters on body_class were effectively ignored. The fix was to change the following in header.php:

    Before:

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

    After:

    // header.php
    <?
    ob_start();
    mysite_body_class();
    $awake_classes = explode( ' ', ob_get_contents() );
    ob_end_clean();
    ?>
    <body <?php body_class( $awake_classes ); ?>>
    #1017846
    Brian
    Member

    I am glad to see you were able to fix this issue.

    It does help when customers find the issue and fix it 🙂

    Since the issue is resolved I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Month-View Tooltip Not Working’ is closed to new replies.