-
AuthorPosts
-
May 14, 2021 at 1:58 pm #1300325
Hi,
what do i need to do to open a URL (whatever kind) in a modal window/lightbox??I found very different answers in your forum.
Sometimes you say “class=”lightbox-added””, sometimes only “lightbox” sometimes you say they open automatically, …..but none of it works.I found “?iframe=true” and this seems to work ….BUT:
1: When a open an image like that i get a vertical scrollbar which is weird.
2: How do i change the size of a modal (not general, only for certain links)??Kind regards
marcusQuestion Number 2 is solved
May 17, 2021 at 2:26 pm #1300750Hi,
1- You can simply insert image URL as the link and it would be automatically opened in lightbox. You do not need to add “?iframe=true” for it, that would be more suitable for content such as contact forms etc.
Regards,
YigitJune 20, 2021 at 3:38 pm #1306562Hi,
i was not onlytalking about images:
“what do i need to do to open a URL (whatever kind) in a modal window/lightbox??”Furthermore
The answer i found in you forum is:`.mfp-iframe-holder .mfp-content { line-height: 0; width: 100% !important; max-width: 1600px !important;}
Plus this if only for a certain page:
.page-id-29970 .mfp-iframe-holder .mfp-content { line-height: 0; width: 100% !important; max-width: 1600px !important; }
BUT:
Why does it work on ID 29970 (its a gallery included in a page) but not on ID 29959 & 30172 (which are portfolio elements)marcus
June 21, 2021 at 12:54 pm #1306722Hi,
You said number 2 is resolved and in number 1 you said image
1: When a open an image like that i get a vertical scrollbar which is weird.
If it is a portfolio item, you would need to use post ID, not page ID so your code should be as following
.postid-29959 .mfp-iframe-holder .mfp-content, .postid-30172 .mfp-iframe-holder .mfp-content { line-height: 0; width: 100% !important; max-width: 1600px !important; }
Regards,
YigitJune 21, 2021 at 1:34 pm #1306729on website opening in a lightbox the ?iframe=true is ok. See: https://webers-testseite.de/my-website/
For images as Yigit said it is not necessary.
( you can see that on enfold/js/avia-snippet-lightbox.js on line 207ff)
the groups and autolink elements do open in lightbox without any addons.June 23, 2021 at 4:02 am #1307053 -
AuthorPosts
- You must be logged in to reply to this topic.