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?

146 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
+3 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.

408 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 });

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes