Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Lightbox shows images from front page instead of current project page

Lightbox shows images from front page instead of current project page

Scheduled Pinned Locked Moved Bug Reports
5 Posts 2 Posters 104 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MWPA
    wrote last edited by
    #1

    Hi,

    I’m seeing a lightbox issue on a project page I’m working on.

    When I click an image here:

    https://dev.nataschalibbert.nl/work/undermined/

    …the lightbox does not show images from that project page. Instead, it opens/shows images from a normal page, specifically the News page, which is set as the front page.

    Does anybody know how this is possible and how to fix it?

    Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MWPA
      wrote last edited by
      #2

      Extra debugging info:

      The issue seems related to the Lightbox Addon collecting images that are present in the DOM but not part of the current project content.

      On a direct load of a project page:

      • the body tag is correct and shows data-type="project" and the correct project data-id
      • the visible project images are correct
      • the clicked project image has the correct data-id, for example data-id="97"
      • however, the opened lightbox image has a different data-id, for example data-id="1081", and belongs to the static front page/news page

      I searched the DOM and found that the wrong frontpage/news images are present inside the project page DOM, although they are not visible on the page.

      They appear inside rows with classes like:

      absolute-positioning-vertically-in-apl

      The image column has attributes like:

      data-type="img"
      data-yvel="1"

      The lightbox then opens a Swiper gallery with the frontpage/news images, for example 1 / 12.

      Important detail:
      If I temporarily disable the static front page in Settings → Reading, direct project page loads open the correct project images in the lightbox. When I set /news as the static front page again, the issue returns.

      So it looks like the Lightbox Addon may be collecting hidden APL/frontpage images from the DOM on direct project page load, instead of only collecting images from the current project content.

      This happens even though the frontpage/news page itself does not have Lightbox enabled.

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote last edited by
        #3

        Hey, thanks for the heads up. This will be fixed with the next update.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MWPA
          wrote last edited by
          #4

          Great, Armin. Any idea when the next update will be released?

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote last edited by
            #5

            it was released yesterday

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).

            We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.

            Want to support my work? paypal.me/arminunruh

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search