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?
How do I remove the Image magnifying on featured images?
12 posts from 2 voices-
Posted 2 years ago #
-
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()Posted 2 years ago # -
Where is the custom.js file? Can't seem to find it.
Posted 2 years ago # -
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.
Posted 2 years ago # -
I did this and it makes no difference?
Posted 2 years ago # -
Can you post a link to your website please?
Posted 2 years ago # -
the website is ctaim.com
Posted 2 years ago # -
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)); }Posted 2 years ago # -
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.
Posted 2 years ago # -
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...
Posted 2 years ago # -
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.
Posted 2 years ago # -
Hey,
remove following code from custom.js:
// activates the lightbox page my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true);Posted 2 years ago #
Reply
You must log in to post.














