[Support request] GeneratePress “Footer Issue” on Short Pages

Home Forums Support [Support request] GeneratePress “Footer Issue” on Short Pages

Home Forums Support GeneratePress “Footer Issue” on Short Pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2043214
    Miguel

    Hi, I have found this solution on the forum. But I need to apply this solution only on the short content Pages, and Not in all Pages:

    body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    }
    .container.grid-container {
    width: 100%;
    }
    .site-footer {
    margin-top: auto;
    }

    Thanks in advance for your kind help 🙂

    #2043239
    Elvin
    Staff
    Customer Support

    Hi there,

    If you wish to have it set automatically, that’s not doable as because there’s no selector that indicates if a page is short.

    But if you’re okay with setting things up manually per page then you can create a Hook element and add this on the code area.

    <style>
    body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    }
    .container.grid-container {
    width: 100%;
    }
    .site-footer {
    margin-top: auto;
    }
    </style>

    You then set the display rule location to the pages you want this to be applied on.

    Any particular reason why you wish it to be changed?

    A wise man once said:
    "Have you cleared your cache?"

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.