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. General Discussion
  3. sticky

sticky

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 1.1k Views 1 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.
  • daniD
    daniD
    dani
    wrote on last edited by dani
    #1

    hi,
    there are several threads about using sticky in LAY.

    armin suggested this:
    http://stickyjs.com/

    JS

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.sticky/1.0.4/jquery.sticky.min.js" ></script>
    
    <script>
    window.laytheme.on("newpageshown", function(layoutObj, type, obj){
        
        jQuery(".sticky").sticky({});
    
    });
    </script>
    

    https://danielcampbell.ca

    daniD 1 Reply Last reply
    0
    • daniD dani

      hi,
      there are several threads about using sticky in LAY.

      armin suggested this:
      http://stickyjs.com/

      JS

      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.sticky/1.0.4/jquery.sticky.min.js" ></script>
      
      <script>
      window.laytheme.on("newpageshown", function(layoutObj, type, obj){
          
          jQuery(".sticky").sticky({});
      
      });
      </script>
      
      daniD
      daniD
      dani
      wrote on last edited by dani
      #2

      @dani example here: https://twigbc.ca/resources

      the issue with this is z-index

      i tried

          jQuery(".is-sticky").css("z-index", "1000");
      
      

      also

      .is-sticky{
          z-index:100000 !important;
      }
      

      no luck
      still unresolved...

      https://danielcampbell.ca

      1 Reply Last reply
      0
      • S
        S
        Sophie1000
        wrote on last edited by
        #3

        Hi, have you find a solution to this issue since then ?

        I have been looking "everywhere" on internet, the problem since deeply linked with Laytheme ?

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

          Dear @Sophie1000

          Am i correct from your recent Thread this is solved?

          http://laythemeforum.com/topic/6672/sticky-element?_=1616638900292

          Best wishes

          Richard

          1 Reply Last reply
          0
          • M
            M
            ml
            wrote on last edited by
            #5

            Hi, following on this I could get the sticky element working, but I have the same problem with the z-index (text disapears behind images, etc.)

            Has anybody found a solution for that?

            Best,
            Marius

            1 Reply Last reply
            0
            • daniD
              daniD
              dani
              wrote on last edited by
              #6

              Hi Marius,

              The sticky works, but I could not figure out how to isolate/specify the z-index of the sticky elements (so they would appear on top). Let me know if you find a solution for it! I'd love to use it.

              https://danielcampbell.ca

              1 Reply Last reply
              0
              • S Sophie1000

                Hi, have you find a solution to this issue since then ?

                I have been looking "everywhere" on internet, the problem since deeply linked with Laytheme ?

                daniD
                daniD
                dani
                wrote on last edited by
                #7

                @Sophie1000 Hi Sophie, there are almost some solutions, but nothing that works easily and without some little bugs... did you find anything? Please let me know. Thanks

                https://danielcampbell.ca

                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
                K
                kp-hb
                D
                Dawid
                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