Tagged: x
-
AuthorPosts
-
July 31, 2016 at 4:03 pm #1111193
cdnmikeParticipantHi,
I set up a 2 image lightbox using Envira Gallery which can be viewed here:
http://x-theme.reportadvantage.com/envira-1/The lightbox works fine but I would like to only display one of the images on the above page while having the lightbox load both images when triggered.
Is there a way to accomplish this?Thank You
July 31, 2016 at 10:03 pm #1111470
LelyModeratorHi There,
Upon checking the documentation, it seems that there’s no option available to achieve this. What we can do is used custom CSS. Please try adding this on Envira Gallery Settings > Misc Tab>Custom Gallery Classes
.envira-gallery-item { display: none; } .envira-gallery-item:first-of-type { display: block !important; }Then you may then to set your columns into one on Envira Gallery Settings > Config> Number of Gallery Columns.
Hope this helps.
August 1, 2016 at 1:33 pm #1112439
cdnmikeParticipantThanks, but it doesn’t remove either image.
August 1, 2016 at 2:13 pm #1112505
Nabeel AModeratorHi again,
Please replace the previous code with this one:
#envira-gallery-item-358 { opacity: 0 !important; }Let us know how this goes!
August 1, 2016 at 3:59 pm #1112668
cdnmikeParticipantHi,
I added the code to the css section in the gallery but still no change. I’m not sure where you get the item number (358) from, is it possible that it different?August 1, 2016 at 4:18 pm #1112692
Nabeel AModeratorHi again,
That should have worked, I couldn’t find the above code in your site maybe there is a syntax error in your Customizer. Try pasting the above code in the first line of your Customizer.
#envira-gallery-item-358is the ID of your second image. If it still doesn’t work then you can provide the login credentials in a private reply so we can take a closer look.Thanks!
August 1, 2016 at 4:27 pm #1112702
cdnmikeParticipantLike an idiot I’ve been putting the code in the wrong gallery. I made a second one this morning.
Can you tell me how to get the image ID and I’ll update the second gallery and try again. I looked at the Media library and can only find the image url.August 1, 2016 at 4:52 pm #1112736
cdnmikeParticipantHi,
I put the code in the gallery css but it did not work. It did work however when I put it into the Custom css!
Could you please let may know how to determine the image ID’s when I need to duplicate this.Thanks
August 1, 2016 at 5:13 pm #1112770
cdnmikeParticipantI think I figured it. If I set the Media Library to list view and hover over the image it displays the path with the Id number.
Thanks for the great support!
August 1, 2016 at 9:23 pm #1113116
FriechModeratorGlad you sorted things out, feel free to get in touch with us regarding any further queries about the X|Theme and Cornerstone.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1111193 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
