Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #820592

    Hi,

    I´ve tried a lot of solutions you´ve posted here since 2013, but no one worked for me.

    Is it possible to configure a link to open in a lightbox popup window in Enfold 4.1, without installing anything else?

    Thank you in advance.

    #820692

    Hi again,

    I have found that adding ?iframe=true at the end of a link it opens the lightbox, but in 16:9, any idea about customising its size?

    Thank you.

    #820975

    Hi,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #821115
    This reply has been marked as private.
    #821525

    Hi,

    Thanks for the login details. Please try the following in Quick CSS under Enfold->General Styling:

    .page-id-21 .mfp-arrow {
      display:none !important;
    }

    Best regards,
    Rikard

    #821583

    Hi Rikard,

    The .mfp-arrow rules worked, thank you so much. In this case I removed the page id to prevent the arrows in the footer section links (Aviso legal, Política de privacidad and Política de cookies).

    Regarding my first question, how could I change the size (or margins) of the lightbox popup window?

    Thank you again.

    #821588

    This is done by the scaler via padding-top:

    .mfp-iframe-scaler {
        height: 0;
        overflow: hidden;
        padding-top: 56.25%;
        width: 100%;
    }

    you see that 100/56,25 equals to 16/9 !
    so if you like to change it to 4/3 means padding-top: 75%

    #821590

    and if you like to have it bigger try to define it via screenwidth (in this case too a 4/3 ratio) :

    .mfp-iframe-scaler {
        height: 0;
        left: 50%;
        overflow: hidden;
        padding-top: 45vw !important;
        position: relative;
        transform: translate(-50%) !important;
        width: 60vw !important;
    }
    #821596

    Hi Guenni007, nice solution! Thank you.

    Finally, for making each lightbox link customisable (i.e. keeping the footer links without the arrows and with some particular scale, but a lightbox gallery or image with the default settings on the same page), is there any parameter (class, id, or something) that could be set at the ?iframe=true link, instead the page-id CSS class?

    Thank you.

    #821597

    no i think you have to do the selection via this way.
    but you might go over a custom class for those settings – and prevent doing it for each page/post you like to influence. – So you only got a couple of rules

    #821680

    Hi,

    Thanks for helping out as always @guenni007 :-)

    Let us know if you should need any further help on the topic @pablo

    Best regards,
    Rikard

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