741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

I was wondering, if and how do you guys do sticky footers in WordPress themes?

the only sticky footer method that I know of is this one, but it requires to pre-set the footer height. Now, given that WP theme users will put any kind of content in footers / various logo sizes etc., the above method won’t work.

How do you do this?

122 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+2 more
FranklinM2 says

I’ve been looking for something similar myself and so far have’t found anything that can handle dynamic footer heights. Am still looking and experimenting. If I find something I’ll share.

393 posts
  • Located in United States
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Made it to the Authors' Hall of Fame
+4 more
WPExplorer says

If you want to follow the example on that link but require it to be more dynamic, then set the value of your elements with jquery.

var footerHeight = $('.footer').outerHeight();
$('.wrapper').css({ marginBottom: -footerHeight });
$('.footer, .push').css({height: footerHeight });