• Resolved megamel

    (@megamel)


    Hi, i want to make the gallery thumbnails not clickable so that it doesn’t open the image. So it simply displays the thumbnail images on the page and doesn’t show a tooltip when you hover over it. Then i have another issue where the images are aligning themselves funny when you make the screen smaller, so it also displays strange on mobile. You can go view this occurrence on http://www.pippaj.co.za

Viewing 1 replies (of 1 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @megamel – The following JavaScript snippet may be of use in disabling image click functionality:

    // Disable <img> clickable
    $(document).ready(function(){
        $('.post-body a img:not(.clickEnabled)').click(function(e) {
            if (e.which === 1) {
                e.preventDefault();
            }
        });
    });

    As to the small screen view issue I am not really seeing anything specific when viewing the URL you provided.

    Thanks!

    – Cais.

Viewing 1 replies (of 1 total)

The topic ‘Non Clickable image’ is closed to new replies.