Account for (optional) footer in wrapper height calc.

I have a footer on my page, so needed to remove that height from the wrapper calc.

The way this code is written, it should not affect normal pages where there is no footer.

This PR has questionable value for your template, I understand. Please close if you don't think it is useful for the project as a whole. I can continue to patch my version for my own needs. Thanks!