Invalid iFrame within the Tag...

1 reply · opened Jul 28, 2019

SSemicolon WebSTAFFJul 28, 2019

Hello,

Thanks for your Patience!

  1. Find the following code in the style.css File:
.masonry-thumbs a {
	position: relative;
	float: left;
	width: 25%;
	max-width: 100% !important;
	overflow: hidden;
}

.masonry-thumbs.grid-2 a { width: 50%; }

.masonry-thumbs.grid-3 a { width: 33.30%; }

.masonry-thumbs.grid-4 a { width: 25%; }

.masonry-thumbs.grid-5 a { width: 20%; }

.masonry-thumbs.grid-6 a { width: 16.60%; }

.masonry-thumbs a,
.masonry-thumbs img {
	display: block;
	height: auto !important;
}

and replace it with:

.masonry-thumbs > a,
.masonry-thumbs > div {
	position: relative;
	float: left;
	width: 25%;
	max-width: 100% !important;
	overflow: hidden;
}

.masonry-thumbs.grid-2 > a,
.masonry-thumbs.grid-2 > div { width: 50%; }

.masonry-thumbs.grid-3 > a,
.masonry-thumbs.grid-3 > div { width: 33.30%; }

.masonry-thumbs.grid-4 > a,
.masonry-thumbs.grid-4 > div { width: 25%; }

.masonry-thumbs.grid-5 > a,
.masonry-thumbs.grid-5 > div { width: 20%; }

.masonry-thumbs.grid-6 > a,
.masonry-thumbs.grid-6 > div { width: 16.60%; }

.masonry-thumbs > a,
.masonry-thumbs > div,
.masonry-thumbs img {
	display: block;
	height: auto !important;
}
  1. Update the entire setFullColumnWidth: function( element ) Function Block in the js/functions.js File with the following code:
setFullColumnWidth: function( element ){

	if( !$().isotope ) {
		console.log('setFullColumnWidth: Isotope not Defined.');
		return true;
	}

	element.css({ 'width': '' });

	if( element.hasClass('portfolio-full') ) {
		var columns = SEMICOLON.initialize.defineColumns( element ),
			containerWidth = element.width(),
			postWidth = Math.floor(containerWidth/columns);
		if( $body.hasClass('device-xs') ) { var deviceSmallest = 1; } else { var deviceSmallest = 0; }
		element.find(".portfolio-item").each(function(index){
			if( deviceSmallest == 0 && $(this).hasClass('wide') ) { var elementSize = ( postWidth*2 ); } else { var elementSize = postWidth; }
			$(this).css({"width":elementSize+"px"});
		});
	} else if( element.hasClass('masonry-thumbs') ) {
		var columns = SEMICOLON.initialize.defineColumns( element ),
			containerWidth = element.innerWidth();

		if( containerWidth == windowWidth ){
			containerWidth = windowWidth*1.005;
			element.css({ 'width': containerWidth+'px' });
		}

		var postWidth = (containerWidth/columns);

		postWidth = Math.floor(postWidth);

		if( ( postWidth * columns ) >= containerWidth ) { element.css({ 'margin-right': '-1px' }); }

		element.children().css({"width":postWidth+"px"});

		var firstElementWidth = element.children().eq(0).outerWidth();

		element.isotope({
			masonry: {
				columnWidth: firstElementWidth
			}
		});

		var bigImageNumbers = element.attr('data-big');
		if( bigImageNumbers ) {
			bigImageNumbers = bigImageNumbers.split(",");
			var bigImageNumber = '',
				bigi = '';
			for( bigi = 0; bigi 
	[
![attachment](demos/coworking/images/location/thumbs/1.jpg)
](demos/coworking/images/location/thumbs/full/1.jpg)
	
	[
![attachment](demos/coworking/images/location/thumbs/2.jpg)
](demos/coworking/images/location/thumbs/full/2.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/3.jpg)
](demos/coworking/images/location/thumbs/full/3.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/4.jpg)
](demos/coworking/images/location/thumbs/full/4.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/5.jpg)
](demos/coworking/images/location/thumbs/full/5.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/6.jpg)
](demos/coworking/images/location/thumbs/full/6.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/7.jpg)
](demos/coworking/images/location/thumbs/full/7.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/8.jpg)
](demos/coworking/images/location/thumbs/full/8.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/9.jpg)
](demos/coworking/images/location/thumbs/full/9.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/10.jpg)
](demos/coworking/images/location/thumbs/full/10.jpg)
	[
![attachment](demos/coworking/images/location/thumbs/11.jpg)
](demos/coworking/images/location/thumbs/full/11.jpg)

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