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. Bug Reports
  3. Fullscreen slider toggles off/on when clicking the site title logo

Fullscreen slider toggles off/on when clicking the site title logo

Scheduled Pinned Locked Moved Bug Reports
2 Posts 2 Posters 37 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.
  • S Offline
    S Offline
    smartin
    wrote last edited by
    #1

    Hi Armin,

    On my front page the fullscreen slider works perfectly on load, but when I click my site title (the logo, which links to the same front page), the slider switches off and the page becomes scrollable. Clicking the logo again turns it back on — so it just toggles off/on with every click. (I believe this is the Magnetic Slides / fullpage feature.)

    It's not the AJAX transitions — I have WooCommerce active, so Compatibility Mode is already forced on, and a normal full reload of the page always works fine. It seems to be the logo's "same-page" click handling: the logo's data-id matches the current front page, and that path looks like it destroys and re-inits the slider out of sync.

    For now I've worked around it by setting the Site Title to HTML mode with a small script that forces the logo to do a real full reload:

    html
    <div class="sitetitle-txt-inner _Default"><span>Martin Schgaguler</span></div>
    <script>(function(){document.addEventListener("click",function(e){var a=e.target&&e.target.closest?e.target.closest("a.sitetitle"):null;if(!a)return;e.preventDefault();e.stopImmediatePropagation();window.location.href="https://martinschgaguler.com/";},true);})();</script>

    That works, but it feels like that it might be something worth fixing for the theme.
    Thanks for all your work on Lay!

    Best,
    Martin

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

      Hi Martin,
      I had a look at your site. There is a JavaScript error coming from your custom dark-slide code. The script starts with (function () {, but the closing })(); is missing. The browser therefore reports SyntaxError: Unexpected end of input.

      I also noticed that the desktop Site Title currently links to /category/work/, not to the front page. That category is empty and does not have the Fullscreen Slider enabled. The mobile Site Title, on the other hand, links to the actual front page.

      In Lay Theme itself, clicking a link that points to the currently active page is prevented and does not destroy or reinitialize the Fullscreen Slider. So at the moment it does not look like the slider is being toggled by Lay Theme’s same-page handling.

      Your reload workaround is currently active, so I cannot reproduce the original behaviour directly. With the workaround enabled, I clicked the Site Title several times and the slider stayed active.

      Could you first fix or remove the incomplete dark-slide script and make sure both the desktop and mobile Site Title link to the actual front page?

      Then temporarily remove the reload workaround and test it again. If it still happens after that, let me know and I’ll take another look.

      1 Reply Last reply
      0
      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