Making row clickable on second site
-
Hi Tobias,
Thank you for the wonderful plugin, Tablepress has been the most important part of my website for years now. I hope all is well with your team.I am in the process of moving the better parts of my old site, madashellboycott.com to a new site stopmediabiasnow.com
The old site has a tables with clickable rows. The solution that worked on the old site was to add the following script to the bottom of each page.
——-
<script type=”text/javascript”>
jQuery(document).ready(function($){
$('.tablepress').on( 'click', 'tr', function() {
var $a = $(this).find('a').last();
if ( $a.length )
window.location = $a.attr('href');
} );
});
</script>
——-
I have put the script at the bottom of the new pages but it doesn’t seem to work. any suggestions as to what I have done wrong?
https://stopmediabiasnow.com/advertisers-lists/
https://stopmediabiasnow.com/abc-advertisers/
https://stopmediabiasnow.com/nbc-advertisers/
https://stopmediabiasnow.com/cbs-advertisers/I have moved over three Tablepress plugins.
TablePress
TablePress Extension: Responsive Tables
TablePress Extension: Single Cell Content ShortcodeThank you in advance.
The page I need help with: [log in to see the link]
- The topic ‘Making row clickable on second site’ is closed to new replies.