• Resolved Dominic

    (@dompan)


    Hi Tobias.
    Really, a great plugin!
    (I’m definitly going to donate!)

    My “problem”:
    When I insert an image to a “cell” and then click on the image, it opens the “full image”, and it seems it opens it in “a lightbox” (the background is black etc.).
    The only problem is that the picture doesn’t dissapear when I press ESC (and also there is no x-icon to click on to close the image). The only way to close the image is tp press “backspace”.
    I have a lightbox plugin installed on my site, and on any other image ESC works.

    Is there a way to get ESC working?

    Thanks!!

    //Dominik

    https://wordpress.org/plugins/tablepress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter Dominic

    (@dompan)

    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

    Thread Starter Dominic

    (@dompan)

    Btw, I use this plugin: https://wordpress.org/plugins/responsive-lightbox/
    If it helps…

    Thread Starter Dominic

    (@dompan)

    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)

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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!

    Thread Starter Dominic

    (@dompan)

    So you don’t think it’s possible to add some code in “Custom CSS” so Lightbox is used default for all tables?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter Dominic

    (@dompan)

    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

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter Dominic

    (@dompan)

    Ok,
    Thanks.

    Will experiment with that later.

    TBC

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    great, sounds good! I hope that you can find a good solution!

    Best wishes,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘When clicking an image, ESC doesn't work’ is closed to new replies.