Tagged: x
-
AuthorPosts
-
August 5, 2016 at 10:01 am #1118949
fransboumansParticipantHi there,
I want to have the closing icon of my lightbox on the right corner of the image, just like Envira Gallery.
I already used the following code to change the layout of the lightbox:
/* Remove Lightbox Wheel */ .ilightbox-loader { display: none !important; } /* Darken Lightbox Background */ .ilightbox-overlay.light { background: rgba(0,0,0,0.4); } /* Remove Lightbox FullScreen button and Enlarge Close button */ .ilightbox-toolbar.light { background: none; border: none; padding: 0; left: 15px; top: 20px; } .ilightbox-toolbar.light a.ilightbox-close:before { font-size: 40px; font-weight: lighter; } .ilightbox-toolbar .ilightbox-fullscreen { display: none; }August 5, 2016 at 1:52 pm #1119239
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
August 18, 2016 at 3:51 am #1136464
fransboumansParticipantThis reply has been marked as private.August 18, 2016 at 5:04 am #1136545
Paul RModeratorHi,
You can add this under Custom > CSS in the Customizer.
.ilightbox-toolbar.light a.ilightbox-close:before { height: 35px; width: 38px; content: url(http://martinanimations.com/wp-content/plugins/envira-gallery/assets/css/images/envirabox_sprite.png); overflow: hidden; } .ilightbox-toolbar.light { box-shadow:none; }Hope that helps
August 18, 2016 at 6:37 am #1136640
fransboumansParticipantThat changes the closing icon, thanks!
But how do I get it in the right upper corner like the images have?
August 18, 2016 at 9:23 am #1136844
Paul RModeratorHi,
You can add this under Custom > Edit Global Javascript in the Customizer.
jQuery(function($) { var lwidth = $('.ilightbox-container').width(); var twidth = lwidth/2; $('.ilightbox-close').parent().css('left','50%'); $('.ilightbox-close').parent().css('margin-left',twidth+'px'); });Hope that helps.
August 19, 2016 at 4:37 am #1138127
fransboumansParticipantThat didn’t change anything for me.
August 19, 2016 at 9:10 am #1138315
Paul RModeratorHi,
In that case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
August 23, 2016 at 2:14 am #1142686
fransboumansParticipantThis reply has been marked as private.August 23, 2016 at 7:23 am #1142960
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
body .ilightbox-toolbar.light { left: 50%; margin-left: 540px; top: 50%; margin-top: -345px; }Hope that helps.
August 24, 2016 at 12:03 am #1144207
fransboumansParticipantThat works, Thanks!
August 24, 2016 at 1:18 am #1144265
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1118949 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
