masonry portfolio in a tab

2 replies · opened Apr 26, 2021

Hht1080zApr 26, 2021

Hi,
how can I re-initialize the masonry portfolio when its located in a tab?
I'm using the version 6.xx of Canvas.

Thank you,
Karls

SSemicolon WebSTAFFApr 26, 2021

Hello,

Consider using the following JS Code at the bottom of the Page:
[ch_pre]<script>
jQuery( '.tabs' ).on( 'tabsactivate', function( event, ui ) {
setTimeout(function(){
$('.grid-container').filter('.has-init-isotope').isotope('layout');
}, 500);
});
</script>[/ch_pre]

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Hht1080zApr 27, 2021

Thank you!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard
masonry portfolio in a tab · Canvas Template Support