I found this great thread https://kriesi.at/support/topic/disable-lightbox-and-clickable-portfolio-image
It seems to answer my exact question ‘How do I disable the lightbox image popup from the featured image. This popup is currently triggered on the ajax portfolio after a portfolio image is selected. I see the ajax preview with the large image. This image has the lightbox popup and this is exactly what I want to disable’.
If I’m not mistaken, the solution appears to be in the thread and is from Dude:
Try following code – it will affect the single portfolio pages only:
jQuery(document).ready(function(){
jQuery(‘.single-portfolio .content .featured’).find(‘img’).unwrap();
My next question is where do I place this code?
Regards,
Ant
Hi!
I’m looking for the same solution.
I tried putting the 2 lines of code into the top of the avia.js file – both after:
$(document).ready(function()
and
$(document).ready(function()
{
I’ve also tried replacing the activate functions in the same avia.js file with this:
//activates the prettyphoto lightbox
//if($.fn.avia_activate_lightbox)
//$(container).avia_activate_lightbox();
but neither works.
my site is here: popmeetsthevoid.com
I’m trying to remove the prettyphoto lightbox from the featured images that come up in the ajax galleries. Please help! :)
Thank you!
Hey!
You need to replace following code in avia.js:
$.avia_utilities.avia_ajax_call = function(container)
{
with
$.avia_utilities.avia_ajax_call = function(container)
{
jQuery('.portfolio_preview_container .portfolio-preview-image').find('img').unwrap();
Best regards,
Peter
You are the BEST! Thank you!!!