WordPress.org

Forums

Easy FancyBox
[resolved] onClick (3 posts)

  1. Megane999
    Member
    Posted 2 years ago #

    <tr onClick="document.location.href='http://mysite.com\1.jpg';" style="cursor:pointer;">
    			      <td><a href="http://mysite.com\1.jpg">Open in Fancy box</a></td>
    			    </tr>

    I am very new in WP and I don't know how to open image in Fancy box by clicking on row

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

  2. RavanH
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, it will only work on a link not a table cell...

    If you want the link to fill the whole table cell (which will have a similar effect to what you are trying) then use some CSS rules like

    td a { display:block; width:100%; }

    in your style.css or do it inline like

    <a href="http://mysite.com/1.jpg" style="display:block;width:100%">Open in Fancy box</a>
  3. Megane999
    Member
    Posted 2 years ago #

    thank you very much, RavanH

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic