Reply To: How to add an inline Magnific-Pop?

Support Forums Cian – HTML Template How to add an inline Magnific-Pop? Reply To: How to add an inline Magnific-Pop?

#4017
CreaboxThemes
Keymaster

Hi Celso,

can you send me your url website to check the error?

Anyway, the script magnificPopup is used to show the images in the galley. It’s used in the file custom.js in this way:

/* ==============================================
    /* MAGNIFIC POPUP FOR PORTFOLIO
	================================================== */
	$('.portfolio-popup').magnificPopup({
		type: 'image',
		removalDelay: 500, //delay removal by X to allow out-animation
		callbacks: {
		beforeOpen: function() {
			   this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
			   this.st.mainClass = 'mfp-zoom-in';
			}
		},
		closeOnContentClick: true,
		fixedContentPos: false
	});

Regards