Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1012862

    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

    #1013380

    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

    #1014187

    the first picture is the problem, the features images

    #1014287

    Hi vasileandrei,

    Do you have lightbox enabled in the theme?
    Image 2018-09-25 at 17.55.17.png

    Best regards,
    Victoria

    #1015194

    Yes

    #1015208

    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

    #1016749

    is fine thanks

    #1016790

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘features images dont open in popup’ is closed to new replies.