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. How to fix content scrolling over fixed footer? I'd like the content to scroll top and behind footer. Thanks

How to fix content scrolling over fixed footer? I'd like the content to scroll top and behind footer. Thanks

Scheduled Pinned Locked Moved General Discussion
7 Posts 5 Posters 2.5k 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.
  • E Offline
    E Offline
    ECCS
    wrote on last edited by
    #1

    Screen Shot 2020-12-10 at 12.20.51 AM.png

    L 1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @ECCS

      Hi, If you can post a link to your website that would be great to see what is needed :)

      Best
      Richard

      E 1 Reply Last reply
      0
      • E ECCS

        Screen Shot 2020-12-10 at 12.20.51 AM.png

        L Offline
        L Offline
        Louis josek
        wrote on last edited by Louis josek
        #3

        @ECCS I did this yesterday to my footer. I have a transparent, fixed footer and the content is scrolling behind it. This is what I put in my CSS:

        .slug-release #footer-region {
        position: fixed;
        background:transparent;
        bottom: 0;
        z-index: 999
        }

        Breakdown:

        1. .slug-release – release is the name of the page the footer should appear on. Leave .slug– and add the name of your page afterward.
        2. position: fixed – footer is always at the bottom of the browser
        3. background: transparent – footer background is transparent. You can put any color here.
        4. bottom: 0 – put this to zero and layout your grid in the footer page.
        5. z-index: 999 – this puts the footer to the front on top of all the content

        Hope this helps. I am sure there are different ways to do it but this is how I did it. I don't have a lot of CSS knowledge.

        Cheers,
        Louis

        E 1 Reply Last reply
        1
        • RichardR Richard

          Dear @ECCS

          Hi, If you can post a link to your website that would be great to see what is needed :)

          Best
          Richard

          E Offline
          E Offline
          ECCS
          wrote on last edited by
          #4

          @Richard-K
          https://chowesther.com/

          I just added the following to the custom CSS but I'm sure there's something else to add to clear the issue

          #footer-region{
          position: fixed;
          bottom: 0;
          left: 0;
          width: 100%;
          }

          1 Reply Last reply
          1
          • L Louis josek

            @ECCS I did this yesterday to my footer. I have a transparent, fixed footer and the content is scrolling behind it. This is what I put in my CSS:

            .slug-release #footer-region {
            position: fixed;
            background:transparent;
            bottom: 0;
            z-index: 999
            }

            Breakdown:

            1. .slug-release – release is the name of the page the footer should appear on. Leave .slug– and add the name of your page afterward.
            2. position: fixed – footer is always at the bottom of the browser
            3. background: transparent – footer background is transparent. You can put any color here.
            4. bottom: 0 – put this to zero and layout your grid in the footer page.
            5. z-index: 999 – this puts the footer to the front on top of all the content

            Hope this helps. I am sure there are different ways to do it but this is how I did it. I don't have a lot of CSS knowledge.

            Cheers,
            Louis

            E Offline
            E Offline
            ECCS
            wrote on last edited by
            #5

            @Louis-josek said in How to fix content scrolling over fixed footer? I'd like the content to scroll top and behind footer. Thanks:

            .slug-release #footer-region {

            Thank You, for the code and elaborating. It worked :)

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Wynz
              wrote on last edited by
              #6

              Hey, I have the problem, that my footer is hiding some content underneath …

              I have coded that the background is solid white, because content was flowing over the footer.

              Now I have the Problem, that my Footer is not under the last bit of text, but hiding the last bit under the footer …

              My Code so far:
              #footer-region{
              position: fixed;
              background: white;
              width: 100%;
              bottom: 0;
              z-index: 999
              }

              Anyone can help?

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                yea because the footer is position fixed, it is not part of the content flow, meaning it doesn't make the page height taller anymore.
                that is why you could set

                .lay-content{
                margin-bottom: 600px!important;
                }
                

                and 600px needs to be the height of the footer.

                look at this website for example (not a lay theme website but the same principle applies):
                https://100k.studio/

                it has a fixed footer and the div above the footer creates space for the footer by having a margin-bottom

                Screenshot 2023-10-18 at 12.04.36.png

                if you cant make it work please post a link here

                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
                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