msiegle

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: How to center the Featured Image? #1168491
    msiegle
    Participant

    Figured it out.

    in reply to: How to expand the Calendar Tooltip? #1167926
    msiegle
    Participant

    Hunter-

    I found this bit of php code…

    if ( function_exists( ‘tribe_is_event’) ) {
    /**
    * Modifying the thumbnail arguments in Month view tooltip from a filter.
    *
    * @link https://theeventscalendar.com/support/forums/topic/month-view-tooltip-image-size/
    * @return array
    */
    function change_tribe_json_tooltip_thumbnail( $json ) {
    $event_id = get_the_ID();

    if ( ! empty( $json[‘imageTooltipSrc’] ) ) {
    $thumb_id = get_post_thumbnail_id( $event_id );
    $thumbnail_atts = wp_get_attachment_image_src( $thumb_id, ‘full’ );

    $json[‘imageTooltipSrc’] = $thumbnail_atts[0];
    }

    return $json;
    }

    add_filter( ‘tribe_events_template_data_array’, ‘change_tribe_json_tooltip_thumbnail’ );
    }

    What I did was create a NEW functions.php, set it in my child theme and it worked like a charm. The tooltip is now full length.

    Regards,

    Michael

    in reply to: How to expand the Calendar Tooltip? #1167800
    msiegle
    Participant

    Hunter-

    I am still lost. I check out exactly what and where you pointed me to. But unfortunately, I have no experience with php. I am looking to just use css to style the tooltip.

    Regards,

    Michael

    in reply to: How to expand the Calendar Tooltip? #1167781
    msiegle
    Participant

    Thx Hunter, thank you for your response. I will dig into this a lil deeper and will be back in touch.

    Regards,

    Mike

Viewing 4 posts - 1 through 4 (of 4 total)