• Resolved WebmasterFran

    (@webmasterfran)


    Hello. I’ve just set a table with 2 columns, one for the images and one for the related text. It’s 60% of width for the 1st and 40% for the 2nd. Quite good, but I’d like to let people open the images in full size by clicking on them. There’s a CSS rule I can add to do that? Thank you!

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    It’s not as easy as that, I’m afraid.
    You will need a plugin that can add an overlay/thickbox.
    Personally, I like https://wordpress.org/plugins/wp-featherlight/ for this.

    Regards,
    Tobias

    Thread Starter WebmasterFran

    (@webmasterfran)

    Thanks a lot, Tobias. I’ll try it! Cheers!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter WebmasterFran

    (@webmasterfran)

    Hello again Tobias
    Actually it doesn’t seem to work so good… Instead of opening a lightbox, it opens the page of the full size image… How can I avoid it, and just open a lightbox with the full size image instead of redirecting to the original image page? Thanks!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Then you haven’t configured that plugin correctly. It will open a lightbox, if the link HTML is correct.

    Regards,
    Tobias

    Thread Starter WebmasterFran

    (@webmasterfran)

    There’s nothing to be configured… The plugin should work opening a lightbox by default, but it’s not working. Anyway, I’ve sent a message to the author, let’s see if we can fix it. Thank you anyway
    Cheers, Fran

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Fran,

    you will need to add certain HTML attributes to the link/image HTML code, as shown in their documentation at https://github.com/noelboss/featherlight/#usage :

    <a href="myimage.jpg" data-featherlight="image"><img src="myimage.jpg" /></a>

    Note that data-featherlight="image" HTML attribute in the link HTML.

    Regards,
    Tobias

    Hello Tobias,

    thank you so much for your posts. I have some links in my Table to images about playgrounds at the german motorways and search for a solution, that these images don’t opens as separate page.

    I’ve installed these featherligth plugin, clear all caches and it works out of the box with a simple design.

    Overall it takes 10 minutes to google, install plugin and test on desktop and mobile.

    You’re a hero 🙂

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Asgard,

    awesome! 🙂 Great to hear that this solution worked for you as well! 🙂

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hi Tobias,

    Could this featherlight be used to open the complete table in an overlay?

    I tried this:

    `<div id=”mylightbox”><?php the_field( ‘auction_table’ ); ?></div>
    <a href=”#” data-featherlight=”#mylightbox”>Open element in lightbox</a>`

    Thank you.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, this should work (except maybe if you plan on using the JavaScript features in the table. You would just have place the table Shortcode inside the overlay content.

    Regards,
    Tobias

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

The topic ‘Allow full size view in tablepress’ is closed to new replies.