Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created January 19, 2023 23:39
Show Gist options
  • Save carmoreira/589effa4380c4388fe21061368937ae7 to your computer and use it in GitHub Desktop.
Save carmoreira/589effa4380c4388fe21061368937ae7 to your computer and use it in GitHub Desktop.
Testomonials Showcsase hashtag filter select
jQuery(document).ready(function(){
var thishash = window.location.href.slice(window.location.href.indexOf('#') + 1);
var menuitem = 'ul#tts-filter-nav li:contains("'+thishash+'")';
if(thishash.length && menuitem.length){
jQuery(menuitem).click();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment