Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #185403

    Hi,

    I asked this once before. The fix that was given did not work. Original thread: http://www.kriesi.at/support/topic/remove-page-post-image-lightbox/

    So – how do we remove this redundant feature? Only the featured image at the top of pages and single posts. Everywhere else the lightbox function exists I want it to work.

    You asked for a link while I was busy with other things. Here you go: http://bit.ly/17FCeAs

    Please advise. He’s complaining about it again.

    #185796

    Hey mobetta!

    Please take a look:

    http://www.kriesi.at/support/topic/disable-lightbox/

    Best regards,
    Josue

    #185800

    I don’t want to completely disable the lightbox!

    Did you read the request? Did you visit the early post about this? I think not.

    PAGE & POST FEATURED IMAGE ONLY… this is what I want to remove the lightbox from. Be sure to read what Dude suggested months ago that did not work before responding.

    #185822

    Hey!

    Ok, open js/custom.js and wrap line 20:
    my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true);

    With this:

    if(!jQuery('body').hasClass('page-template-template_fullwidth-php')){
    my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true);
    }

    Best regards,
    Josue

    #187021

    I would like to do the same as @mobetta, but there is no “custom.js” file in my “js” folder (I’m using your Incarnation template). Where do I go? What can I do?

    #187668

    Hi!

    You need to modify /wp-content/themes/incarnation/js/avia.js – replace

    
    	if(jQuery.fn.avia_activate_lightbox)
    	jQuery(container).avia_activate_lightbox();
    

    with

    
    	if(jQuery.fn.avia_activate_lightbox && !jQuery('body').hasClass('page-id-542'))
    	jQuery(container).avia_activate_lightbox();
    

    and instead of 542 insert the id of the page where you want to deactivate the lightbox.

    Cheers!
    Peter

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

You must be logged in to reply to this topic.