Expand my Community achievements bar.

SOLVED

Sticky Footer

Avatar

Level 1

Hi, I want to add a sticky footer to my page that always remains at the bottom of the screen despite the scrolling and length of the page. What should be my strategy? I have tried to make a container sticky and add my component to that didn't work.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Try https://www.codeinwp.com/snippets/sticky-footer-with-css/ for creating sticky footer and in your page component keep footer container under the html snippet for sticky footer .

 

Thanks

Himanshu

Himanshu Jain

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Try https://www.codeinwp.com/snippets/sticky-footer-with-css/ for creating sticky footer and in your page component keep footer container under the html snippet for sticky footer .

 

Thanks

Himanshu

Himanshu Jain