Slider Revolution WP
09.27.2016
First, set up your Item Skin to include a “Cat List” element:
Next, add the filter buttons to your Grid’s navigation section:
Next, in the same “Nav-Filter-Sort” tab, add the filters you wish to display:
Finally, add the following code to the “API/JavaScript” section of the site:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
jQuery('body').on('click', '.esg-entry-cover a', function() { var txt = jQuery(this).text().toLowerCase(), triggered, $this, txt; jQuery('.esg-filterbutton').each(function() { $this = jQuery(this); $this.children('span').each(function() { if(jQuery(this).text().toLowerCase() === txt) { $this.trigger('click'); triggered = true; return false; } }); if(triggered) return false; }); if(triggered) return false; }); |