data-default issue on portfolio-filter

3 replies · opened Feb 13, 2020

WweimingtanFeb 13, 2020

Hi,

I found an issue after add data-default on my portfolio-filter.
Portfolio-items on second tab will missing wording and icon move to top while i hover on the images.

Thanks in advance!

SSemicolon WebSTAFFFeb 14, 2020

Hello,

Apologies about the Inconveniences and Thanks for reporting this Bug to us.

Please find the following code inside the js/functions.js File:


element.find('a').off( 'click' ).on( 'click', function(){
	element.find('li').removeClass( elementActiveClass );
	$(this).parent('li').addClass( elementActiveClass );
	var selector = $(this).attr('data-filter');
	$(elementContainer).isotope({ filter: selector });
	return false;
});

and replace it with:


element.find('a').off( 'click' ).on( 'click', function(){
	element.find('li').removeClass( elementActiveClass );
	$(this).parent('li').addClass( elementActiveClass );
	var selector = $(this).attr('data-filter');
	$(elementContainer).isotope({ filter: selector });
	setTimeout( function(){
		SEMICOLON.portfolio.portfolioDescMargin();
	}, 750);
	return false;
});

This will definitely fix your issue. Hope this Helps!

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

WweimingtanFeb 24, 2020

Hi,

Thanks. It fix my problem.

Thanks.

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