Hello There,
Thanks for providing the information. I have checked your site and to resolve this issue, please do the following:
- Please edit your home and change the links of the icons. Instead of having
https://statenislandda.org/our-efforts/#tab-1
, please replace it with this new link: https://statenislandda.org/our-efforts/#x-legacy-tab-1
- And then you’ll have to update the JS code as well into this:
jQuery( function($){
$( window ).on('load resize', function(){
scroll_to_tab ( location.href.split("#x-legacy-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-x-toggleable="' + 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');
}
}
});
jQuery(".x-accordion-toggle").click(function(){
if(jQuery(this).hasClass('collapsed')){
jQuery(this).text('Read Less');
} else{
jQuery(this).text('Read More');
}
});
Hope this helps. Please let us know how it goes.