• Hello,
    I use your plugin for single content in a pop-up via your iframe.
    In my content that opens in the pop-up, I have a link to my contact page.
    When I click on this link, it opens in the pop-up while I want it to open on the normal page without pop-up.

    I put the class = “no-lightbox” on the link but it does not work.

    Can you help me:

    Site: http://test6.akro-web.com/#catalogue
    Then click on “Carterie” for example.
    I wish that the button “Demande de devis” brings us to the contact page but without pop-up.

    Sorry for my English, I’m French.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Following a link inside an iframe will open the href inside the same iframe. That has nothing to do with FancyBox so adding a class will not make a difference.

    What you can do is adding a target attribute to the link to tell the browser it should open the href in the (top most) parent frame.

    Like this: <a href="..." target="_top">...</a>

    Thread Starter Akro Web

    (@akro-web)

    Thanks a lot for your help.

    I just have a little problem.
    I go back on my contact page (without the popup) but I still have the black background opacity (The background present at the opening of the popup).

    Thank you

    Ah yes, I see what you mean… The problem is that because it refers to a anchor on the same parent page, the browser just scrolls there instead pf reloading the page which it would do if the contact form lived on another page.

    To close the light box on click, you might add this to each button link:

    
    onclick="javascript:jQuery.fancybox.close();"
    
    Thread Starter Akro Web

    (@akro-web)

    Thank you very much for your answer. But it does not work…

    The theme (apparently) depends on a script file called menuscroll.js which is not there:

    
    GET http://test6.akro-web.com/wp-content/themes/aksite/js/menuscroll.js?ver=4.6.1 404 (Not Found)
    

    And the fact that there is a “normal” link in the top menu seems to trigger an error.

    Not sure if this error is blocking the light box close but it might be worth resolving it…

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘exclude other links width class=”nolightbox”’ is closed to new replies.