Add venue to calendar widget tooltip

Home Forums Calendar Products Events Calendar PRO Add venue to calendar widget tooltip

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #52305
    Jeremiah
    Participant

    I’m trying to add a class to the tooltip event title links in the calendar widget, but only for a single specific venue (AUX). I am using the code below, added to table-mini.php, but the IF conditional is applied to all tooltips regardless of venue. Any suggestions?

    $venue_check = tribe_get_venue($post);
    if ( $venue_check == ‘AUX’ ) {
    $return .= ‘default classes + added class . $post->post_title . ‘;
    } else {
    $return .= ‘default classes . $post->post_title . ‘;
    }

    #52316
    Jonah
    Participant

    Hi Jeremiah,

    Where in table-mini.php did you place your code? Could you share the full code @ http://snippi.com/

    Thanks,
    Jonah

    #52327
    Jeremiah
    Participant

    Sure thing.
    http://snippi.com/s/0j6mffh
    Lines 129-132

    #52335
    Jonah
    Participant

    Hi Jeremiah,

    You need to use $post->ID with tribe_get_venue because $post is just the array of post data. I might suggest using tribe_get_venue_id() too since checking for the venue ID is a little cleaner.

    I hope that helps!

    – Jonah

    #52386
    Jeremiah
    Participant

    That worked perfectly. Thanks!

    #52395
    Jonah
    Participant

    You’re welcome Jeremiah! I’m going to close this thread out but feel to open another one if you need help with anything else.

    Thanks,
    Jonah

    #979258
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Add venue to calendar widget tooltip’ is closed to new replies.