-
AuthorPosts
-
November 11, 2015 at 12:29 pm #533947
Hi, I have a couple of questions…
1) I recently received help in getting a single image to link to a gallery lightbox, but I would like to know now whether it’s possible to have an overlay + text on top of the image? I realize it’s possible to create that effect by inserting an image into a grid row like in this demo: http://kriesi.at/themes/enfold-shop/
However, is this effect possible in my case since I’ve put the gallery images into a code box? I’ve included my page address below if that helps.2) On my page, I can’t seem to get the color section that holds “Check out our demos” any smaller than the current height. I’ve put in a 50px custom height but nothing really seems to change, and the text is off-center. Is there a way to fix that?
Thanks in advance.
November 12, 2015 at 6:37 am #534571Hi mxshi,
I’m not sure what you mean by your first question, could you try to explain a bit further?
Please try the following CSS for number 2:
.page-id-2457 #av_section_2 { min-height: auto !important; }
Regards,
RikardNovember 12, 2015 at 9:40 am #534629Hi,
My first question is how to get my image links to look like this:
I currently have an image gallery coded using a codebox…I’m not sure how to create the effect above?I also tried the code you provided but nothing seems to have happened?
November 12, 2015 at 3:30 pm #534814Hey!
Please use Grid Row element under Layout Elements of Advanced Layout Builder.
Cheers!
YigitNovember 13, 2015 at 8:13 am #535270Hi, thanks for the reply. My question is actually whether it’s possible to have this overlay text effect for an image that links to a gallery lightbox… I played around with it and it seems like it’s only possible to have that single image open in a lightbox. I wonder if it’s possible to have this effect but also link to a lightbox gallery of multiple images? Currently I’m using a code box to create this effect, but I don’t know how to get the text overlay like in the above example.
Here’s the code I’m using, if that helps:
<div class = "post-entry"> <a href = "URL to your main image"><img src = "URL to your main image" /></a> <a href = "URL to your other images" style = "display: none;"> </a> <a href = "URL to your other images" style = "display: none;"> </a> etc etc </div>
November 18, 2015 at 1:01 am #537734Hi!
not sure what you mean, because you can achieve this hover effect with any image when adding an image element using ALB. Just edit the image element and click on “Link settings” and choose “Lightbox”, then go to “Caption” tab and choose your custom caption, which will be applied as hover effect.
Cheers!
AndyNovember 18, 2015 at 5:27 am #537797Hi,
It would be great if someone could help me with my first question above, how to make the space beneath “check out our demos” smaller:
I’ve tried the code given by Rikard and nothing seems to have happened? Thanks!
November 18, 2015 at 2:17 pm #538106Hi!
This is how it looks like on my end – http://i.imgur.com/TQG2gKs.png
Can you please flush browser cache and refresh your page a few times?Regards,
YigitNovember 19, 2015 at 5:08 am #538706Hm, it seems to be fine on Chrome, but in Safari it still looks like the previous image, even after I cleared the cache?
November 23, 2015 at 10:05 am #540594Hi!
I’m sorry but I can’t reproduce the issue on Safari, Windows 8. Are you on mac? Please add this in the Quick CSS field:
.avia-safari #av_section_8 { padding-top: 50px; }
Cheers!
IsmaelNovember 23, 2015 at 11:31 am #540629Hi Ismael,
I tried the code and it still looks the same as above, no changes. Yes, I’m on Safari on Mac.Additionally, I’m having a strange little problem where there’s a little bit of extra padding at the bottom of the grid row, and I don’t know why…
Thanks for the help!
November 26, 2015 at 3:19 pm #543182Hi!
upload images with same size and/or use a plugin like this to control WordPress’ image cropping: https://de.wordpress.org/plugins/simple-image-sizes/
Cheers!
AndyNovember 30, 2015 at 9:51 am #544319Hi,
I’ve checked and reuploaded my images so they’re all the same size, but I’m still getting the extra space at the bottom of the grid row. Any other ideas?Also, this white rectangle appears whenever I hover over my lightbox image:
This happens when I first load the page and hover over the images for the first time.Thanks
December 1, 2015 at 7:34 pm #545512Hi!
Please add following code to Quick CSS
span.image-overlay.overlay-type-image { top: 0!important; }
Cheers!
YigitDecember 2, 2015 at 8:22 am #545773Great, that solved it!
About the extra padding below the grid row — I noticed the color is always #f8f8f8, and I was wondering if there’s a way to change just that color, if there isn’t a way to get rid of that extra space completely?
Thanks for the help so far
December 2, 2015 at 4:10 pm #545929Hey!
Please add following code to Quick CSS as well
#av-layout-grid-1,#av-layout-grid-2 { background: transparent; }
Regards,
Yigit- This reply was modified 8 years, 11 months ago by Yigit.
December 3, 2015 at 5:01 am #546234Thanks! That worked for the grid row on the top of the page, but looks like it didn’t apply to the second grid row at the bottom of the page?
December 3, 2015 at 5:47 pm #546552December 4, 2015 at 4:48 am #546804Hi,
Seems like the second grid row on the bottom isn’t affected by the code, even after I put !important after it. Still looks like this:
December 4, 2015 at 3:48 pm #547055Hey!
It seems like you have two hashtags in your code
#av-layout-grid-2 { background: ##1d2b42 !important; }
please remove one
#av-layout-grid-2 { background: #1d2b42 !important; }
Best regards,
YigitDecember 7, 2015 at 7:35 am #547801Thank you! Everything seems to be fine, except for the spacing issue in Safari on Mac…
I assume there’s no fix for that at this moment?
December 8, 2015 at 6:07 pm #548900Hey!
about which spacing issue are you talking about? I checked link in private content on Mac+Safari but could not find what you are showing on your screenshot. Can you provide us a precise link please? and explain what you want to achieve please?
Cheers!
AndyDecember 9, 2015 at 5:20 am #549470Hi,
Hopefully these images illustrate it better:
I’ve checked on several computers and the extra space in Safari happens on all of them. Everything looks fine on Firefox and Chrome, though…
Thanks for the help!
December 9, 2015 at 4:43 pm #549856Hi!
Please change this code – https://kriesi.at/support/topic/text-overlay-on-lightbox-image-link/#post-534571 to following one
.page-id-2457 #av_section_2 { min-height: 53px !important; }
Best regards,
YigitDecember 10, 2015 at 5:58 am #550166Great, that fixed it! Thanks for all the help!
December 10, 2015 at 3:21 pm #550445 -
AuthorPosts
- You must be logged in to reply to this topic.