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. Scrollto doesn't work

Scrollto doesn't work

Scheduled Pinned Locked Moved Bug Reports
10 Posts 4 Posters 2.1k 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.
  • B
    B
    bb_daniel
    wrote on last edited by
    #1

    Dear Armin,

    I added a menu with custom links to a page I'm currently working on, linking to specific anchor points on the page.

    When I jump to an anchor by #id it seems like a new page has loaded. Anyway the browser scrolls the anchor point but the whole content is gone.

    Would be great to hear from you.,
    Best, Daniel

    1 Reply Last reply
    0
    • B
      B
      bb_daniel
      wrote on last edited by
      #2

      I figured out that since the latest update, the ids #main-region.hide, #footer-region.hide have opacity:0; after clicking a scrollto link.

      1 Reply Last reply
      0
      • mariusjopenM
        mariusjopenM
        mariusjopen
        Global Moderator
        wrote on last edited by
        #3

        Dear @bb_daniel
        can you post a link to the website?

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply
        0
        • B
          B
          bb_daniel
          wrote on last edited by
          #4

          Hey @mariusjopen sorry for the late reply.
          For now I solved the problem by installing an older version of laythme.

          1 Reply Last reply
          0
          • mariusjopenM
            mariusjopenM
            mariusjopen
            Global Moderator
            wrote on last edited by
            #5

            Dear @bb_daniel
            ok. But that should not be the solution.
            We will have a look into that anyway.

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply
            0
            • C
              C
              clrcrtq
              wrote on last edited by
              #6

              @bb_daniel which version did u install?

              giot the same problem here with scrollTo links

              1 Reply Last reply
              0
              • edgrbnzE
                edgrbnzE
                edgrbnz
                wrote on last edited by edgrbnz
                #7

                Might have something to do with the new On Scroll Element Transitions. Did you try deactivating that in Lay Options?

                0_1571243153383_Lay_Options_‹Moritz_Welker—_WordPress.jpg

                ✦ ✦ ✦

                C 1 Reply Last reply
                0
                • edgrbnzE edgrbnz

                  Might have something to do with the new On Scroll Element Transitions. Did you try deactivating that in Lay Options?

                  0_1571243153383_Lay_Options_‹Moritz_Welker—_WordPress.jpg

                  C
                  C
                  clrcrtq
                  wrote on last edited by
                  #8

                  @edgrbnz sadly that didn't do the trick. i fixed the page with setting opacity to 1 for both, but smooth scrolling does not work like this, it just does ugly jumps

                  #main-region.hide, #footer-region.hide {opacity:1!important; }

                  1 Reply Last reply
                  0
                  • edgrbnzE
                    edgrbnzE
                    edgrbnz
                    wrote on last edited by edgrbnz
                    #9

                    Cool you solved it! (for now)

                    In terms of the Scroll Element Transitions they actually do fade in. So they do have opacity: 0 at some point. And that might be one of the issues here.

                    In terms of smooth scrolling:
                    I don’t know which code you are using. A friend of mine seems to have a similar problem on his site. The smooth scrolling works perfectly fine but the whole site turns white als soon as the About anchor gets clicked.

                    ✦ ✦ ✦

                    1 Reply Last reply
                    0
                    • edgrbnzE
                      edgrbnzE
                      edgrbnz
                      wrote on last edited by edgrbnz
                      #10

                      That’s the code I used inside custom <head> content of my friend’s site to make the smooth scrolling work. If anyone has some input why this hides all content I’d be very grateful:

                      <script>
                          window.laytheme.on('newpageshown', function(){
                             if(window.location.hash.length > 0){
                                 var id = window.location.hash;
                                 if(jQuery(id).length > 0){
                                      jQuery('html, body').animate(
                                      { scrollTop: jQuery(id).offset().top },
                                      { duration: 1200 });
                                 }
                             } 
                          });
                      </script>
                      

                      ✦ ✦ ✦

                      1 Reply Last reply
                      1

                      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