Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #867324

    Hello,

    when i open a image in a blog article it is shown in the Enfold Lightbox. In that view you can switch between all other images of that article. But the main “post image” (featured article image) from the article with is visible at the top of the article is also part of them. That should not be the case.

    https://www.th-photography.net/wp-content/uploads/2017/10/lightbox.jpg

    I deactivated it for getting opened in a Lightbox by clicking it (.big-preview.single-big { pointer-events: none; }). But it should also not be part of the Lightbox when switching between all images…

    How can I solve that?

    Thanks a lot,
    Torsten

    #867373

    Hey th-photography,
    I understand, but all of the images on a page that are lightbox enabled will show in the lightbox. We don’t have a way to exclude a certain image. Solutions to this are:
    1. Add the no pointer event (your using this now)
    2. You can edit your blog posts and choose not to display featured image on single posts
    3. add the “noLightbox” class to your /enfold/includes/loop-index.php
    starting at line 196 look for:

    				        if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
    				        if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>';
    				    }
    					
    				    if(!empty($before_content))
    				        echo '<div class="big-preview '.$blog_style.'">'.$before_content.'</div>';

    replace with:

    				        if($slider) $slider = '<a href="'.$links.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
    				        if($slider) echo '<div class="big-preview noLightbox '.$blog_style.'">'.$slider.'</div>';
    				    }
    					
    				    if(!empty($before_content))
    				        echo '<div class="big-preview noLightbox '.$blog_style.'">'.$before_content.'</div>';

    Best regards,
    Mike

    #867739

    Hello,

    Option 3 worked fine, thanks a lot!

    Greetings,
    Torsten

    #867878

    Hi,

    I’m glad you were able to get this corrected. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Article-image should not be listed in Lightbox’ is closed to new replies.