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
8 Posts 2 Posters 782 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
    M
    max_schm
    wrote on 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
      M
      max_schm
      wrote on 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
        arminunruhA
        arminunruh
        Global Moderator
        wrote on 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
          M
          max_schm
          wrote on 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
            arminunruhA
            arminunruh
            Global Moderator
            wrote on 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
              M
              max_schm
              wrote on last edited by
              #6

              Sent you an email. Merci!

              1 Reply Last reply
              0
              • arminunruhA
                arminunruhA
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                i think i didnt get the email? at least i didnt get one by the email u use for the forum here

                1 Reply Last reply
                0
                • arminunruhA
                  arminunruhA
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #8

                  ah now i see ur email!

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  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