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. General Discussion
  3. project overlay not working in instagram browser

project overlay not working in instagram browser

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 90 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
    max_schm
    wrote last edited by
    #1

    Hey hey,

    I ran into an issue with instagram. I noticed that my project overlays are not showing the close "X" button at all.

    I guess that instagram opens as an overlay and saw every attempt to click on something as a refresh, which triggered a script I had in place to redirect to the frontpage. The new version of my script below prevents this refresh in the instagram browser. The old script forced a redirect to the frontpage if a refresh happens while a project overlay is open and prevents getting stuck on the overlay with no way back. Everything works fine with the script below, just not when opened in Instagram.
    Any idea how I can get the close overlay button back in the instagram browser?

    Merci
    Max

    <script>
    document.addEventListener("DOMContentLoaded", function() {

    // Detect Instagram Browser
    const ua = navigator.userAgent || "";
    const isInstagram = ua.includes("Instagram");

    // Do NOT redirect if Instagram browser is used
    if (isInstagram) {
    console.log("Instagram browser detected — no redirect.");
    return;
    }

    // Normal redirect only outside Instagram
    if (document.body.classList.contains("type-project")) {
    window.location.href = "/";
    }
    });
    </script>

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

      I am narrowing down the issue. It seems like these two snippets in "Custom CSS for Mobile Version" are ignored by the Instagram browser:

      #lay-project-overlay{
      z-index: 89!important;
      }
      .close-projects-overlay{
      z-index: 90!important;
      }

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

        Screenshot 2025-11-28 at 16.02.01.png

        unfortunately the instagram browser is not so good, oftentimes things dont work with it.

        i would suggest you disable project overlays for the instagram browser. by using this setting "Disable Project Overlays on Instagram Browser"

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

          Thank you. Yes, I saw this setting. It makes no difference whether it's checked or not. There's another issue, the menu is showing and is unresponsive on the project overlay. This could be a solution, if it were clickable. All attempts to remove the menu via js or css failed. it's either gone entirely everywhere or nothing happens.
          I suppose, I will have to scrap project overlays everywhere to get a consistent experience.

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

            Can you please send:

            • a link to this forum topic
            • your website address
            • /wp-admin/ username and password
              to: info@laytheme.com
            1 Reply Last reply
            0
            • M Offline
              M Offline
              max_schm
              wrote last edited by
              #6

              Sent you an email. Merci!

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


              I also code custom websites or custom Lay features.
              šŸ’æ Email me here: šŸ’æ
              info@laytheme.com

              Our Web Development company: 100k.studio

              Want to tip me? https://www.paypal.com/paypalme/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
              S
              strk
              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