• Resolved rekmit

    (@rekmit)


    Hi, on my page 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rekmit

    (@rekmit)

    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

    (@tobiasbg)

    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 here in the plugin directory. Thanks!

    Thread Starter rekmit

    (@rekmit)

    Rated & I’ve done a small donation. Thanks, and keep up the good work!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thank you, I really appreciate it! 🙂

    Best wishes,
    Tobias

    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

    (@tobiasbg)

    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.