Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #4213

    I want to remove the image magnifying on the featured images on pages, posts, and portfolio.

    The launch video function on the portfolio i want to keep, but the magnifying glass i don’t need.

    How do I do this?



    in custom.js replace following code line:

    jQuery('a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a[href*=""] , a[href*=""]').contents("img").parent().each(function()


    jQuery('a[href$=".mov"] , a[href$=".swf"] , a[href*=""] , a[href*=""]').contents("img").parent().each(function()


    Where is the custom.js file? Can’t seem to find it.


    Custom.js is located in the folder “js” in the cleancut theme directory. You need a ftp software like filezilla or web ftp access to download/upload the file and a text editor to modify it.


    I did this and it makes no difference?


    Can you post a link to your website please?


    the website is


    Try following. In custom.js replace:

    if(jQuery(this).attr('href').match(/(jpg|gif|jpeg|png|tif)/)) $newclass = 'lightbox_image';


    if(jQuery(this).attr('href').match(/(jpg|gif|jpeg|png|tif)/)) $newclass = '';


    var $bg = jQuery("<span class='"+$newclass+" '></span>").appendTo(jQuery(this));


    if ($newclass != ''){
    var $bg = jQuery("<span class='"+$newclass+" '></span>").appendTo(jQuery(this));


    Still doesn’t fix it. The magnifying glass is removed prior to clicking on the image but the function of opening the image when clicking is still there.


    I played around a bit but couldn’t find a quick solution to remove the lightbox effect for images only. You can remove the mouseover magnifier effect or remove the lightbox effect for images + videos but removing the effect for images only can be tricky…


    OK, thanks for your efforts. Tell me then how to remove for both images + videos. I will put the videos in pages or posts rather than having them launch when clicking on the image.



    remove following code from custom.js:

    // activates the lightbox page
    my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true);

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘How do I remove the Image magnifying on featured images?’ is closed to new replies.