Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gkastorinis

    (@gkastorinis)

    I had change the class to this

    case 'thumbnail' :
    							if( self::isValid($ecs_thumb) ) {
    								$thumbWidth = is_numeric($ecs_thumbwidth) ? $ecs_thumbwidth : '';
    								$thumbHeight = is_numeric($ecs_thumbheight) ? $ecs_thumbheight : '';
    								if( !empty($thumbWidth) && !empty($thumbHeight) ) {
    									$output .= '<a href="' . tribe_get_event_link() . '" rel="bookmark">' . get_the_post_thumbnail(get_the_ID(), array($thumbWidth, $thumbHeight) ) .  ' </a>';
    								} else {
    									$output .= '<a href="' . tribe_get_event_link() . '" rel="bookmark">' . get_the_post_thumbnail(get_the_ID(), 'medium') .  ' </a>';
    								}
    							}
    							break;

    But i know it isn’t the right way.

    Please update to the new version of the plugin – thumbnails now link

    To link the images I had to change the following code:

    (Line 195)
    $output .= get_the_post_thumbnail(get_the_ID(), array($thumbWidth, $thumbHeight) );

    to:

    $output .= ‘‘;
    $output .= get_the_post_thumbnail(get_the_ID(), array($thumbWidth, $thumbHeight) );
    $output .= ‘
    ‘;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image link’ is closed to new replies.