Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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. When will "sticky" become STICKY?

When will "sticky" become STICKY?

Scheduled Pinned Locked Moved General Discussion
8 Posts 4 Posters 300 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.
  • J Offline
    J Offline
    jbenfield96
    wrote on Oct 15, 2023, 3:22 PM last edited by jbenfield96 Oct 15, 2023, 11:23 AM
    #1

    This seems like an age old conversation on this forum, however @arminunruh is there any plan to offer users the ability to make an element "sticky" for a whole page rather than just a row?

    This seems like a very common feature amongst websites and something very simple to achieve with competitor web design tools (Cargo, SquareSpace etc.).

    Considering I'm reading topic discussions from over 2 years ago (http://laythemeforum.com:4567/topic/6672/sticky-element/4) where users have had to work together to calculate custom code in order to achieve this I find it a bit frustrating that no solution is being offered beyond "have you tried creating your own JQuery to achieve this".

    I feel very loyal to LayTheme but when simply features like this go ignored I do feel a little let down.

    1 Reply Last reply
    2
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Oct 18, 2023, 4:15 PM last edited by
      #2

      ah yes you're right.
      i will work on it!

      1 Reply Last reply
      2
      • A Offline
        A Offline
        arminunruh
        Global Moderator
        wrote on Nov 30, 2023, 10:28 AM last edited by arminunruh Nov 30, 2023, 5:28 AM
        #3

        hey !

        in the gridder give your element the class "fixed" (without "") (right click element → set html class and html)
        then in your css:

        .fixed{
            position: fixed;
            top: 50px;
            left: 50px;
            z-index: 20;
        }
        

        this will just fix the text at a certain position for the whole page. its almost the same as sticky :D and it works for the whole page

        S 1 Reply Last reply Dec 4, 2023, 9:23 PM
        1
        • A arminunruh
          Nov 30, 2023, 10:28 AM

          hey !

          in the gridder give your element the class "fixed" (without "") (right click element → set html class and html)
          then in your css:

          .fixed{
              position: fixed;
              top: 50px;
              left: 50px;
              z-index: 20;
          }
          

          this will just fix the text at a certain position for the whole page. its almost the same as sticky :D and it works for the whole page

          S Offline
          S Offline
          Starc
          wrote on Dec 4, 2023, 9:23 PM last edited by
          #4

          @arminunruh
          hi!
          i'm stuck with the same issue.
          i have a row (100vh), in which i put an image, that i want to stay fixed in the whole page while scrolling.
          i'va added custom css class to the image, and then add the class to the custom desktop style (position: fixed;top: 0px; left: 0px;), but it doesn't work.
          i've tried to change the height of the row, but nothig has changed.
          with the inspector, giving the same css code to the image, everything it's working, but i can't do the same in the builder.
          i've tried with a text also and the situation it's the same, with f12 it works, in the builder it doesn't.

          am i missing some details?
          do you have any other ideas to try?

          thankssssss

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Dec 5, 2023, 10:03 AM last edited by
            #5

            maybe try !important

            .fixed{
            position: fixed!important;
            top: 50px!important;
            left: 50px!important;
            z-index: 20!important;
            }

            make sure the class is correct, it should be:

            fixed

            S 1 Reply Last reply Dec 6, 2023, 10:56 AM
            0
            • A arminunruh
              Dec 5, 2023, 10:03 AM

              maybe try !important

              .fixed{
              position: fixed!important;
              top: 50px!important;
              left: 50px!important;
              z-index: 20!important;
              }

              make sure the class is correct, it should be:

              fixed

              S Offline
              S Offline
              Starc
              wrote on Dec 6, 2023, 10:56 AM last edited by
              #6

              @arminunruh solved! : )

              1 Reply Last reply
              0
              • alvarodozeA Offline
                alvarodozeA Offline
                alvarodoze
                wrote on Dec 6, 2023, 11:46 AM last edited by
                #7

                The foundation works... but is a bit of a mess in my opinion as it does not respect the grid (columns) or its starting position (rows). Either if it's in the 5th row, it will start in the first one.
                Screenshot 2023-12-06 at 12.44.31.png

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  arminunruh
                  Global Moderator
                  wrote on Dec 7, 2023, 1:59 PM last edited by
                  #8

                  yea thats true

                  .fixed{
                  position: fixed!important;
                  top: 50px!important;
                  width: 50%!important;
                  left: 20%!important;
                  z-index: 20!important;
                  }
                  

                  you can play around with the width and left parameters to change the width and the space to the left

                  you might want to remove the "fixed" class from your element, and add the "fixed" class to a row that contains only your text. right click an empty spot of the row, and choose "set html class and id"

                  if the whole row gets fixed, it might still respect the column left and width of the gridder

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  I also code custom websites or custom Lay features.
                  💿 Email me here: 💿
                  info@laytheme.com

                  Before you post:
                  1. When using a WordPress Cache plugin, disable it or clear your cache.
                  2. Update Lay Theme and all Lay Theme Addons
                  3. Disable all Plugins
                  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                  This often solves issues you might run into

                  When you post:
                  1. Post a link to where the problem is
                  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                  Online Users
                  C
                  craigfeldspar
                  16 minutes ago
                  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