Sent you an email. Merci!
max_schm
Posts
-
project overlay not working in instagram browser -
project overlay not working in instagram browserThank 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. -
project overlay not working in instagram browserI 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;
} -
project overlay not working in instagram browserHey 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>