Lay Theme Forum

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

    sticky

    General Discussion
    4
    7
    86
    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.
    • dani
      dani last edited by 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>
      

      https://danielcampbell.ca

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

        @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 Reply Quote 0
        • S
          Sophie1000 last edited by

          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 ?

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

            Dear @Sophie1000

            Am i correct from your recent Thread this is solved?

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

            Best wishes

            Richard

            1 Reply Last reply Reply Quote 0
            • M
              ml last edited by

              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 Reply Quote 0
              • dani
                dani last edited by

                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 Reply Quote 0
                • dani
                  dani @Sophie1000 last edited by

                  @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 Reply Quote 1
                  • 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

                  G
                  S
                  T
                  L

                  Recent Topics

                  • Carousel is not showing

                  • S

                    Image hover -> Image on image

                  • C

                    centred Carousel fixed width and proportions

                  • text underline

                  laytheme.com