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

    #774911

    Hey 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=true

    Best regards,
    Vinay

    #1025157

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

    #1025159

    SORRY – 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!!!
    THANKS

    #1027402

    Hi,

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

    #1028958

    Hello,
    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 Nora

    #1030147

    Hi,

    You can set the image url as the link of the image element instead of using the page url.

    Best regards,
    Ismael

    #1030270

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

    #1031073

    Hi,

    Looks like you managed to remove the arrows. Anything else we can help you with?

    Best regards,
    Ismael

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