[Resolved] sticky footer

Home Forums Support [Resolved] sticky footer

Home Forums Support sticky footer

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #673210
    Patricia

    hello,

    As there’s the sticky menu option, how can we make the footer also sticky? The problem is that if you have activated the infinite scroll posts, and you want to reach the footer in order to see the privacy policy (for example) it’s really hard, almost impossible, to reach.

    thanks

    Patricia

    GeneratePress 2.1.4
    GP Premium 1.7.2
    #673221
    David
    Staff
    Customer Support

    Hi there,

    you could try this CSS:

    @media (min-width: 768px) {
        .site-footer {
            position: fixed;
            right: 0;
            bottom: 0;
            left: 0;
        }
        #page {
            margin-bottom: 150px;
        }
    }
    #673231
    Patricia

    hi!

    it works but it takes most of the screen are in the mobile version. How would that code by just for desktop??

    thanks

    #673238
    David
    Staff
    Customer Support

    I edited the code above to include it within a media query it will work on tablet and desktop. You can increase the min-width: 768px; to a higher break point if you wish.

    #673416
    Patricia

    thanks!!!

    #673421
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.