portfolio layers on mobile

1 reply · opened Sep 15, 2017

Nnum3riumSep 15, 2017

Hi,

this code shows how i've integrated a portfolio :


	
		
			[
				
![attachment](images/oeuvres/categ/lorem_vign.jpg)

			](categorie.php?idcategorie=lorem)
			
				[](categorie.php?idcategorie=lorem)
			
		
		
			[lorem](categorie.php?idcategorie=lorem)
			[lorem](categorie.php?idcategorie=lorem)
		
	

The .portfolio-desc class shows its content doing an overlay hover effect very nice, but only on desktop .. on mobiles only images displays, so problem to navigate... see screenshot

How could i "force" with pieces of css, the display of the .portfolio-desc class on mobiles and let as now for all others ?

Thx
Pierre

SSemicolon WebSTAFFSep 23, 2017

Hello,

This is Definitely Possible! Please consider adding the following JS Code at the bottom of the Page just after the js/functions.js JS File Linking:


	function triggerPortfolioLayout() {
		if( jQuery('body').hasClass('device-touch') ) {
			jQuery('.grid-container').removeClass('portfolio-notitle');
			setTimeout( function(){ jQuery('.grid-container').isotope('layout'); }, 500 );
		} else {
			jQuery('.grid-container').addClass('portfolio-notitle');
		}
	}

	jQuery(window).on( 'load', function(){
		triggerPortfolioLayout();
	});

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.

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