Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1463410

    Hi,
    i would like to you the lightbox for images (with putting my own link to the image).
    I would like to deactivate this function for resolutions smaller than 900px.

    I also would like to reduce the height of the opened lightbox image, that the close-button “x” can be seen (at the moment it gets cut off).
    How can i do that?
    kind regards
    Jak

    #1463417

    if you are using image Element for that – just go to advanced tab on the image elmenent and choose as “Image Link”: set manually.
    Insert the url of that new image to show in lightbox.
    As long this is an image it will open then automatically in the lightbox: https://webers-testseite.de/custom-link-to-lightbox/

    easiest way to hamper that lightbox opening would be a media query to set pointer-events to none for that link.

    if you like to have more selectivity – then use custom-class on the image element.

    @media only screen and (max-width: 899px) {
      a.avia_image.lightbox-added {
        pointer-events: none;
      }
    }

    for that close button you can shift it f.e. into the image – or to the right side of the image

    test:

    div.avia-popup .mfp-close {
      right: 5px;
      top: 45px;
      background-color: rgba(0,0,0,0.3);
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.