Lay Theme Forum

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

    Multiple anchor points smooth scroll and issue at top

    General Discussion
    3
    4
    496
    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.
    • DMB
      DMB last edited by

      Hi there, I have a bunch of text links in a text block, in a row at the top of my page.
      For each text link I have clicked 'link' and then entered an ID which corresponds to an ID I have given each row below in the gridder.

      Works like a dream to navigate apart from on one or two pages where if after clicking and navigating to a row with the aref link, when you scroll back up to the top of the page it cuts off some of the very first row at the top UNLESS you scroll all the way to the bottom of the page and then back to the top. After that it works all the time, weird. Any thoughts?

      Also I wanted to smooth scroll all my anchor points. If ound another thread on here and armin had written this jQuery for someone:

      jQuery(document).ready(function(){
      jQuery('body').on('click', '.js-scrollTo', function(event) {
      event.preventDefault();
      var id = jQuery(this).attr('href');
      jQuery('html, body').animate( { scrollTop: jQuery(id).offset().top }, 750 );
      });
      })

      It doesnt really work for me, even if I try replacing the class with my ID. Ideally id like a bit of jQuery that animates all anchor point links. I can easily enter all the IDs if I have to though.

      Do you have any ideas on this?

      Thanks!

      Duncan

      DMB 1 Reply Last reply Reply Quote 0
      • DMB
        DMB @DMB last edited by

        Actually its Ok I worked it all out! :sunglasses:

        1 Reply Last reply Reply Quote 0
        • V
          victor last edited by

          Hello,

          I know this issue is quite old but I'm facing exactly the same problem!
          Any clues on how you fixed it?

          Thanks

          Victor

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

            Dear Victor @victor

            Am i correct that your issue lies with scrolling upwards in general on your page, and you have created another thread on this?

            Best :)
            Richard

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Try this to fix issues 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

            L

            Recent Topics

            • C

              centred Carousel fixed width and proportions

            • L

              position Project titles outside the images on the side

            • slow navigation WP admin control panel

            • P

              News element date and title order

            laytheme.com