Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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?

    #45504

    Hey,

    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*="vimeo.com"] , a[href*="youtube.com"]').contents("img").parent().each(function()

    with:

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

    #45505

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

    #45506

    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.

    #45507

    I did this and it makes no difference?

    #45508

    Can you post a link to your website please?

    #45509

    the website is ctaim.com

    #45510

    Try following. In custom.js replace:

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

    with:

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

    and:

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

    with:

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

    #45511

    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.

    #45512

    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…

    #45513

    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.

    #45514

    Hey,

    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.