• Resolved SomniumLucidus

    (@somniumlucidus)


    Hi folks,
    First and foremost, thanks for the amazing theme.

    This is not a complaint — I think it’s great that Olsen Light has its own photoviewer. However, I’ve installed the Photoswipe Masonry plugin, and sometimes when I click on a photo in order to enlarge it, it fires both the native viewer and Photoswipe Masonry, so the photo comes up twice (and then I have to close it twice).
    Is there a recommended method I could use to disable the original photoviewer, so that Photoswipe can take over?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,
    You can open scripts.js and locate and remove this from inside

    	$( ".ci-lightbox, a[data-lightbox^='gal']" ).magnificPopup({
    		type: 'image',
    		mainClass: 'mfp-with-zoom',
    		gallery: {
    			enabled: true
    		},
    		zoom: {
    			enabled: true
    		}
    	} );
    

    Try installing the WP Editor plugin to enhance the default editor and then navigate to the /themes/olsen-light/js/ folder to find the file.

    This way you will remove the native modal functionality.

    Let me know if this works for you.

    Thread Starter SomniumLucidus

    (@somniumlucidus)

    It worked! Thanks!

    P.S.: I’ve rated the theme and left a review. =)

    Hello!
    Thank you for your review! We really appreciate this!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best way to disable native photoviewer’ is closed to new replies.