Hi. I am getting the following error in my console - on several (if not all) pages. https://mysalus.org
Uncaught Error: Syntax error, unrecognized expression: #x-legacy-tab-https://mysalus.org/"]
at Function.fa.error (jquery.js:2)
at fa.tokenize (jquery.js:2)
at fa.select (jquery.js:2)
at Function.fa (jquery.js:2)
at Function.a.find (jquery-migrate.min.js:2)
at n.fn.init.find (jquery.js:2)
at n.fn.init.a.fn.find (jquery-migrate.min.js:2)
at a.fn.init.n.fn.init (jquery.js:2)
at new a.fn.init (jquery-migrate.min.js:2)
at n (jquery.js:2)
I do have the following js in my theme-customize js panel based upon my previous ticket and the code provided there. https://theme.co/apex/forum/t/will-it-be-possible-to-use-tabs-in-url-navigation-with-xpro-v2-1-x-going-forward/35599
// Tabs js - working?
jQuery( function($){
$( window ).on(‘load resize’, function(){
scroll_to_tab ( location.href.split("#tab-").slice(-1)[0] );
});
function scroll_to_tab ( tab_id ) {
console.log(tab_id);
var tab_nav = $(’#x-legacy-tab-’ + tab_id + ‘"]’);
var tab_content = $(’#x-legacy-panel-’ + tab_id + ‘"]’);
if(tab_nav.length >=1) {
$( tab_nav ).trigger(‘click’);
$(‘html,body’).stop().animate({scrollTop: $(tab_content).offset().top - ( $(’.x-navbar’).height() + 50 ) },700 ,‘swing’);
}
}
});
Has something changed recently? Thank you