-
AuthorPosts
-
October 22, 2017 at 9:21 pm #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- This topic was modified 7 years ago by th-photography.
October 22, 2017 at 11:08 pm #867373Hey 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,
MikeOctober 23, 2017 at 5:37 pm #867739Hello,
Option 3 worked fine, thanks a lot!
Greetings,
Torsten- This reply was modified 7 years ago by th-photography.
October 23, 2017 at 11:23 pm #867878Hi,
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 -
AuthorPosts
- The topic ‘Article-image should not be listed in Lightbox’ is closed to new replies.