WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
[resolved] Inline HTML for Colorbox (4 posts)

  1. tddeffner
    Member
    Posted 1 year ago #

    I am having some issues getting an inline HTML work in WordPress with the colorbox Plugin.

    Here is my Code. It opens the window but it displays empty.

    <a href="#feature">Lightbox</a>

    <div style="display:none">
    <div id="feature">
    This is the feature box.
    </div>
    </div>

    http://wordpress.org/extend/plugins/jquery-colorbox/

  2. techotronic
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    yeah, that should work if you added the CSS class "colorbox-link".
    At least this snippet works on my site when embedded in a post:

    <a class="colorbox-link" href="#searchbox">SEARCH</a>
    
    <div style="display:none">
    <div id="searchbox">
              <p>Search box goes here</p>
    </div>
    </div>

    Cheers,
    Arne

  3. linto.davis
    Member
    Posted 1 year ago #

    If it is an external link,how i can i open it in colorbox popup?

  4. techotronic
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    that works exactly the same way:

    <a class="colorbox-link" href="http://www.google.com/">SEARCH</a>

    Cheers,
    Arne

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic