Before you ask please READ THIS

Disable Lightbox

edited August 2013 in Skyfashion Posts: 1
I would like to know is there away to disable the Lightbox feature when an image is clicked on. Or is there away to make the lightbox (white spacing) smaller?

Comments

  • Posts: 493
    Hi,

    If you are familiar with JavaScript you can edit file
    skyfashion/common/js/jquery.fancybox.settings.min.js

    If not, please tell me if you want to disable Fancybox at all or just in some cases?

    Kind regards
  • Posts: 72
    i am also curious how to disable that fancybox function generally. i think the old way doesn´t work any more ?
    http://support.apollo13.eu/discussion/comment/4551#Comment_4551
  • Posts: 493
    This old method works too.

    You can also remove content of file:

    skyfashion/common/js/jquery.fancybox.settings.min.js

    Kind regards
  • Posts: 72
    hmmm ... i have tried both methods... but it doesn´t happen anything:/
  • Posts: 493
    Please give me a link to your blog.

    Kind regards
  • Posts: 72
    www.cortis.info
  • Posts: 493
    Hi bcor,

    i've checked your blog but you havent removed content of file which i mentioned above. Could you do that?

    Kind regards
  • Posts: 72
    hi, i have deleted the content of the file jquery.fancybox.settings.min.js again...so it´s now completely empty, is that ok ?
  • Posts: 493
    and as i see now you have lightbox/fancybox disabled
  • Posts: 72
    damn ;) u yre right..i think my ache plays bad with me ;) ...
    ok but when i now click on the picture, no fancybox will open, but i will be linked to page with my picture... is it possible to disable this too ?
  • Posts: 493
    So you dont want this feature globally on your blog? Even in galleries?
  • Posts: 72
    hi,

    i think in my blog it´s fine.. i just canread the posting with the pictures but i can´t click on a picture to open anything..that´s ok
    but on the galleries i still can click on the pictures, my cursor changes to a hand and when i click on the picture a new page opens with my picture (ok it´s no fancybox now)..but how can i disable that cursor (hand) and the opening of an extra page ?

    regards ben
  • Posts: 493
    Hi Ben,

    Do you mean gallery for example on this page?
    http://cortis.info/portfolio/1546/

  • Posts: 72
    yes e.g. this page
  • Posts: 493
    At the end of file common/js/scripts.min.js please add this line:

    $('a.alpha-scope-image').click(function(e){ e.preventDefault() });


    Kind regards
  • Posts: 72
    sorry for the late answer.. but your last code works and disable the "mouseover"effect...

    now the only thing that still not working is if i click on the picture here:
    http://cortis.info/portfolio/1376/ --> i will be transported to: http://cortis.info/wp-content/uploads/2013/05/DSC_7202_web.jpg ...

    how can i sidable this too ?

    thx

    regards ben
  • Posts: 493
    $('.vert-item').click(function(e){ e.preventDefault() });
  • Posts: 72
    i have added the line at the end too: $('.vert-item').click(function(e){ e.preventDefault() });

    but i don´t see a different ... :(
  • edited December 2013 Posts: 72
    the problem still exists... i have insert both codes and als try to replace 1.code with 2.code....but....

    "http://cortis.info/portfolio/1376/ --> i will be transported to: http://cortis.info/wp-content/uploads/2013/05/DSC_7202_web.jpg ..."

    i don´t want that someone will be transported to such links....



    Post edited by bcor on
  • Posts: 493
    Sorry but the links above doesnt work.

    But when i visit page: http://cortis.info/portfolio/2420/

    And click photo nothing happens. Is it now workin well? Or maybe you need to get some other effect?
  • Posts: 72
    i have used the "slider" function on the single pages...that solved all the problems here..it was easier than to modify the code.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!