-
AuthorPosts
-
April 9, 2017 at 2:39 am #774766
I need when they click an image open a popup like when you see an image on facebook.
similar to lightbox But when I click the image is different
Hi Victoria,In the clans section, I want you to click on a shield to display an image
April 9, 2017 at 12:38 pm #774911Hey Terra,
There are many lightbox plugins but you don’t need any, it can be easily achieved with just the enfold theme features.
1. Please create a new page with your text or gallery in it and hide the header and footer from the right sidebar options.
2. Use an icon, button or image element and set the new page link in there and select open in the same window.
3. Just add “?iframe=true” to the end of the page link http://site.com?iframe=trueBest regards,
VinayOctober 22, 2018 at 10:40 pm #1025157Hi Terra,
I had the same issue and it worked fine.
However:
Is it possible to get the iframe bigger then displayed by default, because the image I would like to show is quite big.
On my smartphone it pops up in the right proportion, but on the desktop it’s too small.October 22, 2018 at 10:49 pm #1025159SORRY – I FORGOT:
Is it possible to get the iframe bigger then displayed by default, because the image I would like to show is quite big and I need to scroll on my desktop to view it completely.
The image is in portrait view not landscape.On my smartphone it pops up in the right proportion. However, as I have 2 iframe images on one page, I get arrows – but only on my smartphone – to move from one iframe image to the next. I don’t want that option!!!
THANKSOctober 29, 2018 at 8:27 am #1027402Hi,
Thanks for the update.
You can use this css code to increase the width of the lightbox container.
.mfp-iframe-holder .mfp-content { width: 100%; max-width: 80vw; }
Best regards,
IsmaelNovember 1, 2018 at 10:26 pm #1028958Hello,
Unfortunately this didn’t fix my problem.
The best would be if the image opens up like a lightbox, not in an iframe.
The image is taller than the iframe.
Do you have any other option to open a different image than the one I clicked on.
Thanks NoraNovember 6, 2018 at 3:19 am #1030147Hi,
You can set the image url as the link of the image element instead of using the page url.
Best regards,
IsmaelNovember 6, 2018 at 8:29 am #1030270Thanks Ismael, but actually my main problem is that I have 2 images where I open an iframe, and now, next to each iframe page or image there are arrows letting you move to the next iframe. Can I get rid of this arrows? Because in the context it doesn’t make sense that you can click to the next iframe. It should just be 2 individual images or pages that can be opened, not connected to each other.
November 8, 2018 at 4:34 am #1031073 -
AuthorPosts
- You must be logged in to reply to this topic.