WordPress.org

Ready to get started?Download WordPress

Forums

FancyBox for WordPress
[resolved] FancyBox WP plugin not working in tables (6 posts)

  1. gauthi24
    Member
    Posted 1 year ago #

    Hi,

    My goal is to have a table with 3 columns (description and two thumbnails). These thumbnails would then link to a large version of the artwork using fancyBox.

    I'm currently using fancyBox 3.0.1 (http://plugins.josepardilla.com/fancybox-for-wordpress/) and Websimon Tables 1.3.3 (http://websimon.se/websimon-tables/). I've activated the fancyBox plugin and it should automatically work for any image links, but doesn't... the thumbnail links directly to the image on its own screen. I've also tried TablePress and got the same result.

    This is the code in the table cell:
    <a href="wp-content/images/c_00/intro-i1_labelled768" ><img src="wp-content/images/c_00/intro-i1_labelled115" /></a>

    Is there an extra step that is needed? Or maybe is it just this type of table plugin? I like the functionality of the Websimon table, but it is critical that the fancyBox (or something similar) works.

    Any suggestions? If it helps to see what I'm doing, here is the link: http://www.bmc.med.utoronto.ca/cranialnerves_01/?page_id=15

    Thanks for your time!

    http://wordpress.org/extend/plugins/fancybox-for-wordpress/

  2. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Now, I'm not sure what's wrong here, but I'm quite positive that we can find out what's going on.
    So, I took a look at the link you posted, however, I'm not seeing any tables there :-( Is this the correct link?

    Regards,
    Tobias

  3. gauthi24
    Member
    Posted 1 year ago #

    Thanks for looking at this!!

    Yes, I removed the table to try a different approach, but the table would really be the ideal solution. I've placed the table into my page again if you could take another look.

    http://www.bmc.med.utoronto.ca/cranialnerves_01/?page_id=15

    Thanks so much!

    -Andrea

  4. TobiasBg
    Member
    Posted 1 year ago #

    Hi Andrea,

    thanks for the new link!

    The reason for this problem is the URL to the images: Those are missing the file extension (i.e. wp-content/images/c_00/intro-i1_labelled115 is missing the .jpg at the end).
    While your server doesn't care about this, and still delivers the image, the FancyBox script needs the file extension at the end.

    So, just fix all the URLs of the images, so that they have a file extension, and everything should work just fine.

    Regards,
    Tobias

  5. gauthi24
    Member
    Posted 1 year ago #

    That's great! Thank you so much. It is fixed!

    Best,
    Andrea

  6. TobiasBg
    Member
    Posted 1 year ago #

    Hi Andrea,

    very nice! Great to hear that this did the trick!

    Best wishes,
    Tobias

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic