Home › Forums › WordPress Themes – Premium › Preference › Lightbox Photos from Widgetkit Lay Under Main Menu
- This topic has 11 replies, 16 voices, and was last updated 9 years, 11 months ago by
K Faylor.
-
AuthorPosts
-
October 11, 2013 at 10:07 am #14220
K Faylor
ParticipantYou know how you can set lightbox feature for photos with Widgetkit?
Well when one clicks on them and the photo gets full size, it lays behind main menu at top. Not a big deal, but just a slight issue. No rush for an update or anything, just a suggestion.
Thanks
October 11, 2013 at 6:36 pm #18439Sushil Adhikari
ModeratorWhat version of Preference are you on? Does it do that when you view the live demo site (click on the woman with the sunglasses for a big pic)? I just tried it but it’s on top of the menu.
October 11, 2013 at 10:43 pm #18441K Faylor
ParticipantSweet, my bad. Was using older version 🙂
Thanks
October 11, 2013 at 11:13 pm #18443Sushil Adhikari
ModeratorNo worries… I’m assuming all is well now?
October 11, 2013 at 11:22 pm #18444K Faylor
ParticipantI do actually have yet another question hah. When I want to float an image to left or right of paragraph, it’s pretty easy in WordPress through Add Media option. However, the minute I insert code for lightbox feature, it loses it’s ability to float left or right in text, and just merely stands above paragraph. Is there something I’m missing codewise?
Thanks
October 11, 2013 at 11:33 pm #18445Sushil Adhikari
ModeratorShouldn’t be affecting it because the lightbox is separate from the inserted image into your post or page. The important part to get a lightbox is to add that code to your
In fact, try this tutorial out for Luminescence:
https://www.styledthemes.com/luminescence-setup/195-adding-an-image-overlay-with-a-lightbox-using-widgetkitOctober 11, 2013 at 11:51 pm #18446K Faylor
ParticipantI looked at video and used that code, and it just doesn’t seem to be floating to right of paragraph as it would in the absence of lightbox href addition.
Any suggestions? Only reason I bring it up is that people commonly float images to right or left of text when blogging, etc, so it would be nice to still utilize that lightbox feature outside of gallery types of pages.
Code I used:
Thanks
October 12, 2013 at 12:38 am #18448Sushil Adhikari
Moderatorok…I played with this and discovered that the “link” styling in the widgetkit plugin has it’s own styling which means your thumbnail is wrapped in this tag but it has no alignment attribute, hence the left aligning of your image.
Solution one, insert a linked image with a caption (basic method of WordPress), change the link to the full image, add this
data-lightbox="titlePosition:inside"
into the tag.
Solution two, wrap your linked image with a span like this:
You can adjust the margins by adding inline styling like style=”margin: 5px 5px 5px 20px;”
October 12, 2013 at 12:44 am #18449Sushil Adhikari
ModeratorActually, I think I found the styling in widgetkit and to create a custom css like this for the theme:
a[data-lightbox] { display: inherit!important; }
I tried it and it seemed to have worked.
October 12, 2013 at 1:07 am #18450K Faylor
ParticipantI added that to CSS and added lightbox code to link. If I add the data spotlight feature to it though, it does not work. Is there a CSS trick similar to what you did with lightbox that will also recognize the data spotlight feature?
Otherwise, it works.
Thanks
October 12, 2013 at 1:52 am #18451Sushil Adhikari
ModeratorUnfortunately without recoding a bunch of stuff, the spotlight will have to be left out. It turns out there’s some css that is conflicting between this theme, the widgetkit and how the thumbnail (image) function of WordPress works.
October 12, 2013 at 2:20 am #14221K Faylor
ParticipantOh, okay. No problem. Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.