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

J

jayjay123

@jayjay123
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Trouble Setting Up Custom 404 Page
    J jayjay123

    Hi @arminunruh I’m struggling to set up a custom 404 page in Lay Theme and I’m a bit confused about how Lay handles it.

    Here’s my situation:
    I cannot find any existing 404 page or template in the backend.

    I created a normal page and named it “404”, but WordPress automatically changes the permalink to 404-2, which makes me think that a 404 page already exists somewhere — but I can’t find it anywhere in:
    • Pages
    • Templates
    • Customizer
    • Lay Theme settings

    Also, when I add any random slug like:
    https://energiebuero-hetschko.de/hpajdsapjdsaü
    I don’t get a 404 page, instead, I always get redirected to the homepage.

    PW: test

    I also tried creating a 404 as a template, but I can’t find any way to assign a template to a page as 404.

    Dont’ know if it helps but I use yoast free plugin for SEO.

    Thanks in advance for your help!

    General Discussion

  • Prevent Scroll Jump on Page Transition (different behavior in Chrome/Safari vs Firefox)
    J jayjay123

    ah perfekt! Thanks so much!! Worked! <3

    General Discussion

  • Prevent Scroll Jump on Page Transition (different behavior in Chrome/Safari vs Firefox)
    J jayjay123

    https://energiebuero-hetschko.de/leistungen/
    PW is: test

    General Discussion

  • Prevent Scroll Jump on Page Transition (different behavior in Chrome/Safari vs Firefox)
    J jayjay123

    Hi @arminunruh ,

    I’m trying to customize the page transitions on my site and I’m running into a scroll issue during AJAX navigation.

    When switching pages, LayTheme keeps the scroll position from the previous page and then scrolls back to the top. I would like each new page to start at the top immediately, without showing any visible scroll movement.

    What makes it confusing is that the behavior differs by browser:
    • Firefox: works fine – the transition uses opacity and the new page appears only after it’s already at the top
    • Chrome & Safari: the new page appears at the old scroll position first and then visibly scrolls to the top afterwards

    So users can actually see the page jumping/scrolling up, which looks off.

    Things I already tried:
    • window.scrollTo(0,0) in the Head
    • forcing .scrollTop = 0 on LayTheme containers
    • overriding window.scrollTo()
    • custom JS on page transition events

    None of these worked.
    In DevTools I can see that frontend.app.min.js calls scrollTo() after the new page loads, which seems to override everything.

    My questions:
    1. Is there a built-in LayTheme option to disable this automatic scroll behavior?
    2. Is there a recommended way to force every new page to start at scroll position 0 with AJAX transitions?
    3. Why does Firefox behave differently from Chrome/Safari here?

    Thanks a lot for your help!

    General Discussion
  • Login

  • Don't have an account? Register

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