741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
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?

79 posts
  • Microlancer Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Exclusive Author
  • Has been a member for 3-4 years
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.

380 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Referred more than 2000 users
  • Bought between 500 and 999 items
  • Has been a member for 4-5 years
  • Exclusive Author
  • United States
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 });
by
by
by
by
by
by