How to Stick Footer to Bottom when Page Content is Less?

Sometimes you may have pages on your site, that have few lines of text or very less content.

In such cases, the footer displays below the content somewhere between the page. That does not give a nice look to the page.

You can stick the footer to the bottom so that no matter what your content length is, the footer will stick at the end of the page.

Option with Astra theme

Add the following filter to child theme’s functions.php file.

Option with Astra Pro Addon plugin –

Sticky Footer option is available with Astra Pro’s Custom Layouts addon.

  • You would need to design a footer and set it as a sticky.
  • With Display On setting, you can set it to be displayed on a particular page or on the entire website. 
Not the solution you are looking for? Check other articles, or open a support ticket.