- This topic has 11 replies, 3 voices, and was last updated 6 months, 4 weeks ago by
Ying.
-
AuthorPosts
-
August 12, 2022 at 7:31 am #2310945
Leonardo
Hello guys. How are you?
I’m trying to create a huge difficulty in a relatively simple effectbox:
I have an image and by clicking on it, in addition to the image, it would also open its description/caption.
However, I would like the image to open on the left side and the description/caption next to it, like in this image: http://escolasuzuki.leonardomarioto.com/wp-content/uploads/2022/08/example-lightbox.png
Do you have something already included in WordPress or the theme that does this with a few CSS tweaks?
Thanks.
August 12, 2022 at 7:44 am #2310968David
StaffCustomer SupportHi there,
do you have a Lightbox that is showing the Image and Description ? If so can i see it on the site ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 12, 2022 at 7:48 am #2310994Leonardo
David, I tested some plugins, but I would like to see if there is also some native form of WordPress/Generate.
August 12, 2022 at 9:34 am #2311184David
StaffCustomer SupportNo, neither WP or GP has anything like that built in. You will need a plugin for that.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 12, 2022 at 11:05 am #2311257Leonardo
David, I think I found a good and simple solution!
Now, I really just need a little help with CSS, that is, leaving the photo on the left and the text on the right.
You can access the page http://escolasuzuki.leonardomarioto.com/professores/ and take the third “Dario Oliveira” as an example.
Click on it and see how it looks, please.
August 12, 2022 at 11:30 am #2311287Ying
StaffCustomer SupportWhich photo are we talking about? Is it this one built with GB?
https://www.screencast.com/t/CGy9MybeKeHow would you like it to be? Can you provide a mockup?
August 12, 2022 at 12:32 pm #2311355Leonardo
Ying, clicking on this photo will open a lightbox with the image and the text below it.
What I want is to have the image on the left and the text on the right (instead of it being below the image).
Understand?
August 12, 2022 at 12:44 pm #2311375Ying
StaffCustomer SupportTry this:
@media (min-width: 769px) { #slb_viewer_wrap .slb_theme_slb_default .slb_container { display: block; max-width: 70%; } #slb_viewer_wrap .slb_theme_slb_default .slb_details { padding-left: 20px; margin: 0 !important; } #slb_viewer_wrap .slb_theme_slb_default .slb_content { float: left; } }
August 26, 2022 at 5:50 am #2324532Leonardo
Hi!
I would like a last bit of help with a CSS in an image lightbox, if possible.
The page is http://escolasuzuki.leonardomarioto.com/professores/
As you can see in this image “http://escolasuzuki.leonardomarioto.com/wp-content/uploads/2022/08/ajuda-css-lightbox.png” the white background that accompanies the text does not follow until the end of the image. I would like the white background to follow until the end of the image too.
If you can help me, I would be very grateful!
August 26, 2022 at 10:00 am #2324865Ying
StaffCustomer SupportCan you point me to this specific image? I searched the image URL in page source, but couldn’t find it.
August 26, 2022 at 10:14 am #2324878Leonardo
Sorry, the link was wrong:
http://escolasuzuki.leonardomarioto.com/wp-content/uploads/2022/08/ajuda-css-lightbox.png
If I can, I would also like to reduce the size that the image appears in the lightbox, but I’m also having difficulties…
August 26, 2022 at 11:14 am #2324968Ying
StaffCustomer SupportCould you change my previous CSS to this?
@media (min-width: 1025px) { #slb_viewer_wrap .slb_theme_slb_default .slb_container { max-width: 70%; } #slb_viewer_wrap .slb_theme_slb_default .slb_details { padding-left: 20px; margin: 0 !important; } .slb_container { display: flex !important; flex-wrap: nowrap; } .slb_details { flex: 1; } }
-
AuthorPosts
- You must be logged in to reply to this topic.