Hi. More testing my site before upgrading to xpro v2.2.6 which i have in a staging area. My production site is on xpro v1.2.7 and I have built the site heavily using classic tabs and use the following added global js so that I can add /#tab-# to the url to take users to the specific content of the page.
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-nav-tabs .x-nav-tabs-item a[data-cs-tab-toggle="' + tab_id + '"]');
if(tab_nav.length >=1) {
$( tab_nav ).trigger('click');
$('html,body').stop().animate({scrollTop: $(tab_nav).offset().top - ( $('.x-navbar').height() + 50 ) },700 ,'swing');
}
}
});
The above code doesn’t seem to work on v2.1.6 and I know there is a big change to the v2.1.x tabs code and have looked at the kb’s on this topic.
Is there any current or planned solution to making tabbed navigation work in the v2.1.x and going forward? If not are there any third-party solutions? As you can imagine, this will change my UX/UI significantly if I can not find a solution.
Thank you.