• Hello there,
    firstly thank you very much for making this great plugin available!

    I am trying to add a link inside an inline lightbox to close the same lightbox.

    I have tried adding this to my code:

    <a href="$.fn.colorbox.close();">Close</a>

    Here is the full code:

    <a href="https://orientalbazaronline.com/wp-content/uploads/2014/10/blank1x1.png"></a>
    
    <div style="display: none;">
    <div id="lbp-inline-href-1" style="font-family:Josefin Sans;text-align:center;padding:10px;background:#fff;">
    <p><a title="Português" href="https://www.orientalbazaronline.com/pt-br">Clique aqui para ver a página em PORTUGUêS</a></p>?
    <p style="font-size:15px;">To continue to the English version, click<a href="$.fn.colorbox.close();">here</a></p>
    </div>
    </div>

    Any ideas on how to make it work? Should I add a <script> referring to Javascript source on the page too?

    Thanks a lot.

  • The topic ‘How to add a link to close lightbox’ is closed to new replies.