I have an accordion with 3 acc_content with Masonry Gallery
When i open an accordion no show gallery. In te first is show.
6 replies · opened Oct 5, 2019
I have an accordion with 3 acc_content with Masonry Gallery
When i open an accordion no show gallery. In te first is show.
Hello,
This is Definitely Possible but not setup by default! Consider finding the following code in the js/functions.js File inside the accordions: function() Function Block:
$(this).toggleClass('acctitlec').next().stop().slideDown("normal", function(){
if( ( $body.hasClass('device-sm') || $body.hasClass('device-xs') ) && element.hasClass('scroll-on-open') ) {
$('html,body').stop(true).animate({
'scrollTop': clickTarget.offset().top - ( SEMICOLON.initialize.topScrollOffset() - 40 )
}, 800, 'easeOutQuad' );
}
});and replace it with:
$(this).toggleClass('acctitlec').next().stop().slideDown("normal", function(){
$('.masonry-thumbs:not(.customjs)').isotope('layout');
if( ( $body.hasClass('device-sm') || $body.hasClass('device-xs') ) && element.hasClass('scroll-on-open') ) {
$('html,body').stop(true).animate({
'scrollTop': clickTarget.offset().top - ( SEMICOLON.initialize.topScrollOffset() - 40 )
}, 800, 'easeOutQuad' );
}
});This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Thanks very much for you fast response.
I don't think it explains well
https://disneyparistravel.com/disneyhotelnewport.html
In the accordion, only the first gallery is seen. When i click in other no show.
Hello,
We understand and the codes we have provided you with above fixes the problem. Please follow the instructions provided above and let us know if you are still facing the issue. Thanks for your Patience.
Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.
Sorry, i change js code but no show.
If i use inspector in Chrome is show but is i click in other accodion no show again.
Hello,
Apologies about the Inconveniences! Consider using the following code:
$(this).toggleClass('acctitlec').next().stop().slideDown("normal", function(){
SEMICOLON.widget.masonryThumbs();
if( ( $body.hasClass('device-sm') || $body.hasClass('device-xs') ) && element.hasClass('scroll-on-open') ) {
$('html,body').stop(true).animate({
'scrollTop': clickTarget.offset().top - ( SEMICOLON.initialize.topScrollOffset() - 40 )
}, 800, 'easeOutQuad' );
}
});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.
Fantastic, it works perfect
Thanks very much
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