Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › Lightbox Ultimate breaking div structure
- This topic has 2 replies, 2 voices, and was last updated 12 years, 7 months ago by
wpCommerce.
-
AuthorPosts
-
July 1, 2012 at 5:31 pm #6749
jack96161
MemberI used WP video Lightbox successfully and then purchase Lightbox Ultimate for just one feature – autoplay. Formerly I used:
<div style=”width: 500px; height: 135px; float: left;margin:0px 10px 0px 10px “>
[video_lightbox_youtube video_id=f80BH-lPZGk width=800 height=600 anchor=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/motownbutton-96dpi.png”%5D
[video_lightbox_youtube video_id=f80BH-lPZGk width=800 height=600 anchor=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/rockbutton-96dpi.png”%5D
[video_lightbox_youtube video_id=f80BH-lPZGk width=800 height=600 anchor=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/countrybutton-96dpi.png”%5D
[video_lightbox_youtube video_id=f80BH-lPZGk width=800 height=600 anchor=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/themedbutton-96dpi.png”%5D
</div>
to display 4 anchor images side by side, which worked perfectly — but no autoplay option.
Using Lightbox Ultimate, I replaced this with:
<div style=”width: 550px; height: 135px; float: left;margin:0px 10px 0px 10px “>
[wp_lightbox_prettyPhoto_video link=”http://www.youtube.com/watch?v=f80BH-lPZGk” width=800 height=600 autoplay=”1″ source=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/motownbutton-96dpi.png”%5D
[wp_lightbox_prettyPhoto_video link=”http://www.youtube.com/watch?v=f80BH-lPZGk” width=800 height=600 autoplay=”1″ source=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/rockbutton-96dpi.png”%5D
[wp_lightbox_prettyPhoto_video link=”http://www.youtube.com/watch?v=f80BH-lPZGk” width=800 height=600 autoplay=”1″ sourcer=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/countrybutton-96dpi.png”%5D
[wp_lightbox_prettyPhoto_video link=”http://www.youtube.com/watch?v=f80BH-lPZGk” width=800 height=600 autoplay=”1″ sourcer=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/themedbutton-96dpi.png”%5D
</div>
However, the plugin now wraps every one of these 4 items with a <div class=”lightbox_ultimate_anchor lightbox_ultimate_image_anchor “>…</div> so the resulting page source looks like:
<div class=”lightbox_ultimate_anchor lightbox_ultimate_image_anchor “>
<img src=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/motownbutton-96dpi.png” alt=”” />
</div>
<div class=”lightbox_ultimate_anchor lightbox_ultimate_image_anchor “>
<img src=”http://www.highsierradesign.com/LVA/wp-content/uploads/2012/06/rockbutton-96dpi.png” alt=”” />
</div>
<div class=”lightbox_ultimate_anchor lightbox_ultimate_image_anchor “>
</div>
<div class=”lightbox_ultimate_anchor lightbox_ultimate_image_anchor “>
</div>
which breaks my block flow. How can I prevent the plugin adding the
<div class=”lightbox_ultimate_anchor lightbox_ultimate_image_anchor “>… </div>
around these 4 items?
The site under development is http://www.highsierradesign.com/LVA/ there should be 4 anchor images beneath the large video anchor image..
Jack
July 1, 2012 at 6:06 pm #46781jack96161
MemberSolved it — had to add
.lightbox_ultimate_image_anchor {
position: relative;
display: inline;
}
to the CSS — now works… and autoplays!!!
July 2, 2012 at 1:21 am #46782wpCommerce
ModeratorHi, I’m glad to hear that you figured it out.
Lightbox Ultimate comes with a range of shortcodes to popup various media files. Instructions for using the shortcodes are available here (Plugin Usage section):
WordPress Lightbox Ultimate Plugin – Display Media in a Fancy Lightbox Overlay
You can also customize the look and feel of each shortcode anchor. If you want to use the same CSS for all the shortcode anchors of your site please follow the instructions outlined here:
Lightbox Ultimate – How to Add Custom CSS to a Lightbox Anchor (Text or Image)
If you want to customize each shortcode anchor with different CSS please follow the instructions outlined here:
-
AuthorPosts
- You must be logged in to reply to this topic.