Tagged: Lightbox
For my website, I basically use featured images and portfolio images. When hovering over these images, a kind of ‘zoom icon’ appears and clicking on that makes a lightbox appear. Now I want to turn off this lightbox function. What is the best way to achieve that?
I’ve read about several solutions like:
//activates the prettyphoto lightbox
$(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});
with
//activates the prettyphoto lightbox
//$(container).avia_activate_lightbox({callback:'avia_lightbox_callback'});
#top.single-post .big-preview.single-big a,
#top.single-post .small-preview {
pointer-events: none;
cursor: default;
}
Regarding (1): I didn’t try this yet.
Regarding (2): I’ve tried this. The lightbox function disappears on a single blog post page, but is still there on the blog list page. (post formats: image)
Regarding (3): I’ve tried this. The lightbox function disappears on a single blog post page, but it links to the image file which still is not what I want.
I’m getting a bit confused… Basically I don’t want to use any lightbox of link for images on my website. What is the cleanest way to achieve this?
UPDATE
=======
Based on (2) Edited css and added this, which seems to work, but I’m not sure if it’s very nice/clean:
.big-preview.single-big a,
.small-preview {
pointer-events: none;
cursor: default;
}
Hey Marc!
I think the second solution is the best route as you don’t have to edit the theme files directly.
Regards,
Josue
Allrighty!
Thnx Josue!
Marc