Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    anchor links don't jump to the proper place

    General Discussion
    2
    3
    18
    Loading More Posts
    • 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.
    • Janina
      Janina last edited by

      hi

      so i have this page: https://atelierparadiso.com/services
      the 3 elements are anchor links.

      if i click them they don't jump to the proper place & slightly cut off the heading.

      it works okay-ish for the first link/section but section 2 + 3 are cut off.

      i found this code snippet and added it to the global custom css section but it didn't work:

      a[data-hs-anchor="true"] {
      display: block;
      position: relative;
      visibility: hidden;
      top: -100px;
      }

      https://community.hubspot.com/t5/Share-Your-Work/Anchor-links-leading-to-the-wrong-section-of-the-page-SOLVED/m-p/364418

      do you have a suggestion of how to fix this? maybe i did insert the code at the wrong place?

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        hey in lay options Screenshot 2023-02-15 at 14.31.16.png

        see "anchor/expandrow scroll space top for desktop"

        try a value here like 100 or you can try a negative value

        mmh remove that code, i think it doesnt do anything:
        a[data-hs-anchor="true"] {
        display: block;
        position: relative;
        visibility: hidden;
        top: -100px;
        }

        1 Reply Last reply Reply Quote 0
        • Janina
          Janina last edited by

          perfect!! thank you

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Post a link to where the problem is
          I don't answer or check forum DMs, please just post on the forum.
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

          Before you post:

          Use the Search Feature. Maybe there is already a solution to your issue.

          1. Update Lay Theme and all Lay Theme Addons
          2. Disable all Plugins
          3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
          4. Now see if your problem solved itself
          5. Go here, see if your problem is listed here:
          Troubleshooting

          When you post:
          1. Post a link to where the problem is
          2. If the problem is difficult to explain, post screenshots / link to a video to explain it

          Thanks!

          Online Users

          A

          Recent Topics

          • A

            With the updates my site has become very slow sloooooow

          • A

            thanks for the update ...

          • A

            Disable Rightclick and context menu for copyright reasons

          • A

            back to home from any project should not go back to top at home

          laytheme.com