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

M

max_schm

@max_schm
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • project overlay not working in instagram browser
    M max_schm

    Sent you an email. Merci!

    General Discussion

  • project overlay not working in instagram browser
    M max_schm

    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.

    General Discussion

  • project overlay not working in instagram browser
    M max_schm

    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;
    }

    General Discussion

  • project overlay not working in instagram browser
    M max_schm

    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>

    General Discussion
  • Login

  • Don't have an account? Register

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