Title: Make rows clickable
Last modified: August 22, 2016

---

# Make rows clickable

 *  Resolved [rekmit](https://wordpress.org/support/users/rekmit/)
 * (@rekmit)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/)
 * Hi, on my page [http://www.transferpricing.wiki/transfer-pricing-country-matrix/](http://www.transferpricing.wiki/transfer-pricing-country-matrix/)
   I would like to make the rows clickable and point the link that is included in
   the first column.
 * I’ve searched the forum and found and included this in the ‘custom javascript’
   field of the page that has the tablepress shortcode, but it doesn’t work. Any
   help would be greatly appreciated!
 *     ```
       <script type="text/javascript">
       jQuery(document).ready(function($){
         $('.tablepress-id-1').on( 'click', 'tr', function() {
           var $a = $(this).find('a').first();
           if ( $a.length )
             window.location = $a.attr('href');
         } );
       });
       </script>
       ```
   
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Thread Starter [rekmit](https://wordpress.org/support/users/rekmit/)
 * (@rekmit)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190124)
 * Never mind, I found it, it doesn’t work in the custom JS field, but it does work
   if you put it simply below the tablepress shortcode.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190127)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, putting this directly below the Shortcode is the best way here. Good to 
   hear that this will be helpful! 🙂
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!
 *  Thread Starter [rekmit](https://wordpress.org/support/users/rekmit/)
 * (@rekmit)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190147)
 * Rated & I’ve done a small donation. Thanks, and keep up the good work!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190154)
 * Hi,
 * thank you, I really appreciate it! 🙂
 * Best wishes,
    Tobias
 *  [rjbayerl](https://wordpress.org/support/users/rjbayerl/)
 * (@rjbayerl)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190334)
 * Hi, I’m liking what I see in making tables with this plugin. But I can’t see 
   if I can create links in cells to cause images to be displayed as pop ups. See
   the page in question at MRLS.org…the 2013 Bulb Sale page. For each name in the
   name column their is a photo of the lily to be shown.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190335)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, you can insert images with links on the, the best way is by using the “Insert
   Image” button on the “Edit” screen of the table.
 * Making them pop up will however require an extra plugin for that use case. TablePress
   does not have such a feature.
 * Regards,
    Tobias

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

The topic ‘Make rows clickable’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/make-rows-clickable-1/#post-5190335)
 * Status: resolved