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. Anchor link reloads page before scrolling

Anchor link reloads page before scrolling

Scheduled Pinned Locked Moved Bug Reports
2 Posts 2 Posters 237 Views
  • 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.
  • A
    A
    alasdair17
    Global Moderator
    wrote on last edited by
    #1

    Hi there,

    I have a link which scrolls to an element on the same page but it reloads the page before going to the element.

    See here for an example and click on, 'Book a Table': https://fivemarch.co.uk/gosangatsu

    See how it scrolls to the booking element immediately but then reloads before scrolling to it again.

    Is there a way where it will just scroll to it without needing to reload the page?

    Thanks,

    Alasdair

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by Richard
      #2

      Dear Alasdair

      @alasdair17

      I see there are some 3rd party Plugins installed along with console errors.
      It is likely your Wordpress back-end environment and not Lay Theme.

      "Lay Theme is not responsible for compatibility with all 3rd-party plugins."

      Wordpress, Lay Theme & Laytheme's Addons are all up to date ?


      Any custom CSS or JS that may interfere is temporarily removed.


      Any third-party plugins are de-activated to see if this resolves the issue.

      Also you reference reloading page, check out AJAX in Lay Options :Screen Shot 2021-09-01 at 11.17.14 AM.png

      https://laytheme.com/troubleshooting.html

      Please test Lay Theme in this vanilla environment and see if the anchor works as it should. 🌝
      From there you can add plugins back in 1 by 1 and see when the clash occurs - isolating the problem plugin.


      Talk soon
      Richard
      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