hi
in the “config-events-calendar\single-event.php” I find this comment
Event featured image, but exclude link
this is a command that prevents features to open images larger than the rest of the images?
like the number two image from link from private content?
I need that features images to open in larger images
Hey vasileandrei,
I took a look at the second image on your page and found that it is linked to open full size directly, it couldn’t open any larger.
Is this what you were trying for?
Please see the screenshot in Private Content area to ensure I’m looking at the correct image.
Best regards,
Mike
the first picture is the problem, the features images
Hi,
This is the default events template code, we didn’t modify it. However you can add this functiobn to your child theme functions.php to activate the lightbox for the featured image
function custom_tribe_event_featured_image( $featured_image ){
if( is_single() ){
$post_id = get_the_ID();
$size = 'full';
$image_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );
$featured_image = '';
if ( !empty( $image_src ) ) {
$featured_image = '<a href="'. $image_src[0] .'" title="'. get_the_title( $post_id ) .'" rel="lightbox"><img src="'. $image_src[0] .'" title="'. get_the_title( $post_id ) .'" class="alignleft" /></a>';
}
}
return $featured_image;
}
add_filter( 'tribe_event_featured_image', 'custom_tribe_event_featured_image');
Best regards,
Peter
is fine thanks
Hi,
I’m glad you were able to get this resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon