Hi,
thanks for your post, and sorry for the trouble.
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Most likely, I won’t be able to help here though, as this sounds more like a problem with that Lightbox plugin. TablesPress itself does not alter the way how images are displayed, or how the ESC key works.
Regards,
Tobias
Hi!
Thanks for the fast reply 🙂
One thing I just discovered is that the background is a little “lighter” when I click on an image from the table compared to any other image when using Firefox. In Safari there is a white background (still only when clicking the picture in the table)
I added both an image and a gallery to compare:
http://dompan.se/ramar/
Also thought that it should be an issue with the “lightbox-plugin”, but this made me confused.
Regards // Dominik
Hmm…
I might have solved it, after some googleing.
I added the line: data-rel=”lightbox”
To this:
<a href="http://dompan.se/wp-content/uploads/2015/09/under_construction_animated2.jpg" data-rel="lightbox"><img src="http://dompan.se/wp-content/uploads/2015/09/under_construction_animated2-300x300.jpg" alt="" width="150" height="150" class="alignnone size-medium wp-image-326" /></a>
You are more than welcome to say if this is the best/easiest way to do it 🙂
(remember that I’m a noob)
Hi,
yes, that looks like the solution here! Nice find.
Your lightbox plugin probably needs this extra parameter to find which images it should apply to.
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
So you don’t think it’s possible to add some code in “Custom CSS” so Lightbox is used default for all tables?
Hi,
no, this can not be fixed with CSS, as that only influences the styling of the table and the content, but it can not influence extra features like that.
Regards,
Tobias
Hi.
As before, thanks for you’re fast replies!
Do you maybe know another (free) Lightbox-plugin that might work better with this? Or is this regardless of which plugin I use..?
//D
Hi,
other plugins might indeed be better, but I’m not familiar with them, so that I can’t make suggestions here.
Whether they work basically depends on when they run their code for image detection. If that’s not run after Shortcodes are processed, they will probably fail to “see” images in tables.
Regards,
Tobias
Ok,
Thanks.
Will experiment with that later.
TBC
Hi,
great, sounds good! I hope that you can find a good solution!
Best wishes,
Tobias