Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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
    marcus

    Question Number 2 is solved

    #1300750

    Hi,

    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,
    Yigit

    #1306562

    Hi,
    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

    #1306722

    Hi,

    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,
    Yigit

    #1306729

    on 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.

    #1307053

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.