WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
Add div to lightbox window (3 posts)

  1. wrenmead
    Member
    Posted 9 months ago #

    hi

    Can anyone tell me if its possible to add another div to the lightbox popup window? For example I want each image popup to have my company logo above it.

    It would be great if someone could point me in the right direction.

    thanks

    http://wordpress.org/plugins/lightbox-plus/

  2. It should be possible via a filter. Can you provide the before and after HTML output that you are looking for?

    For example I want each image popup to have my company logo above it.

    That also may be something doable with just some CSS. I'm a little lacking in that department myself but If you can provide a link to the site you mean that may help other people make suggestions.

  3. wrenmead
    Member
    Posted 9 months ago #

    Hi Jan

    Thanks for the quick reply. What i am looking to do is below(there is no website yet,developing on wamp). Code below is cut from firebug intialised after lightbox is activated.

    <div id="cboxContent" style="float: left; width: 698px; height: 558px;">
    <div class="mylogo">my logo goes here</div><div style="width: 698px; overflow: hidden; height: 430px;" id="cboxLoadedContent"><img style="margin-top: 0px; float: none;" src="http://localhost/halocms/wp-content/themes/shopperpress/thumbs/72003029.jpg" class="cboxPhoto"></div><div style="float: left; display: block;" id="cboxTitle">About</div><div class="social-button"> social media buttons go here</div>
    </div>

    seem div "mylogo" added as well as another div after title for social media buttons or some other content. I dont see a problem using css for my logo as we can just move the loaded content down but we would need to create a div for the social media buttons.

    Hope you can help

Reply

You must log in to post.

About this Plugin

About this Topic