• Resolved vserbu

    (@vserbu)


    Hello again.

    I’m maybe pushing here some options that are not intended for this kind of plugin, but I love this plugin so much that I just want to tweak some things a little bit more, otherwise it is so simple and perfect that I don’t wont to use any other more complicated plugin.

    So here is my question – is there any way to limit the scale of magnification in this plugin?

    thanx again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Vserbu,

    A new version 2.0.5 just got released.
    You can now use PHP code like this:

    function imageviewer_custom_options() {
    	?>
    	<script>
    	imageviewer_custom_options = {
    		zoomValue: 100,
    		snapView: true,
    		maxZoom: 500,
    		refreshOnResize: true,
    		zoomOnMouseWheel: true
    	};
    	</script>
    	<?php
    }
    add_action( 'wp_footer', 'imageviewer_custom_options' );

    You can put this in the functions.php file of your theme, preferably a child theme.
    You can change the value for maxZoom to a smaller value like 200.

    Does this help you?

    Thread Starter vserbu

    (@vserbu)

    Works perfectly!

    Thank you so much once again

    best regards

    Vedran

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zoom limit’ is closed to new replies.