[Resolved] Make Footer above all content Z-Index

Home Forums Support [Resolved] Make Footer above all content Z-Index

Home Forums Support Make Footer above all content Z-Index

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #942102
    Morgan

    Searched and couldn’t find an answer, simple question, so thought I’d open a new post.

    My footer is fixed, not sticky, but I’ve made my sidebar sticky.
    The sidebar at certain screen sizes scrolls over the footer, simple solution is for it scroll under/make footer above all other content.

    The sticky sidebar obvs has some javascript going on keeping it above everything else and .site-footer, .footer-widgets{z-index: 100;} isn’t working.

    Any tips to make the footer on top of all other content?

    #942116
    Leo
    Staff
    Customer Support

    Hi there,

    How are you making the sidebar sticky?

    A sticky element is supposed to go on top of all other content (otherwise it would sort of defeat the purpose of being sticky).

    #942117
    Morgan

    Ah, yes, that’s a valid point :-P.

    Using https://en-au.wordpress.org/plugins/q2w3-fixed-widget/

    #942122
    Leo
    Staff
    Customer Support

    Yeah I’m not sure if there is a way to solve this as the sticky element obviously needs to be on top so the plugin is doing what it’s supposed to do.

    Shot in the dark but what if we try this CSS?
    https://generatepress.com/forums/topic/how-to-make-the-sidebar-static/#post-784512

    #942125
    Morgan

    That links making sidebar sticky, which I already have.
    Are u suggesting to use that method instead of plugin, and can then change z-index to higher than sticky?

    #942127
    Leo
    Staff
    Customer Support

    I’m suggesting trying David’s CSS instead of using the plugin.

    Not sure if it will work but worth a shot.

    #942142
    Morgan

    Well, waddayaknow – worked!

    Thanks ๐Ÿ™‚

    #942160
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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