Site logo

[Resolved] Sticky Bar at the Bottom of the Screen

Home Forums Support [Resolved] Sticky Bar at the Bottom of the Screen

Home Forums Support Sticky Bar at the Bottom of the Screen

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2598405
    Zoltan

    Hi Guys,

    I have created an additional footer bar with an ad, but it’s not sticky. I am using the “after_footer” hook on the entire site.

    Current CSS:

    /* Sticky footer bar */
    .footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    }

    How can I make the footer bar sticky on the entire site?

    Thanks!

    #2598691
    Leo
    Staff
    Customer Support

    Hi there,

    I have created an additional footer bar with an ad

    I just checked the linked page but not seeing this. Can you confirm?

    Let me know 🙂

    #2598715
    Zoltan

    Hi Leo,

    I sent you the link again in a private note.

    You should be able to see this one across the entire website unless you use an ad-blocker or similar.

    Please let me know.

    Thanks.

    #2598809
    Fernando
    Customer Support

    Hi Zoltan,

    How did you add your Custom CSS? Can you try adding it through Appearance > Customize > Additional CSS?

    #2599013
    Zoltan

    Hi Fernando,

    So I added it through style.css in my Generate press child theme. All the other CSS is in that file.

    But this CSS did not make the footer bar sticky. So when I follow your recommendation and add it through Appearance > Customize > Additional CSS, it makes the footer bar sticky.

    Now it looks fine.

    Just a side note, curious why this CSS or any CSS would not work in the child theme file but works in the additional CSS section?

    Current CSS:

    /* Sticky footer bar */
    .footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    }

    Thanks.

    #2599020
    Fernando
    Customer Support

    There’s likely a syntax error somewhere on your style.css file. You’ll need to correct it. There’s are a bunch of syntax error site out there like this: http://csslint.net/

    #2599031
    Zoltan

    I will do that. Thank you, Fernando!

    #2599060
    Fernando
    Customer Support

    You’re welcome, Zoltan!

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