hi there,
our team needs to add a stikcy footer with 100% width on the bottom of the page, so we went ahead, seems like the change is not much, here's the code.
at the end of page.tpl.php, add
<footer class="footer_bottom">
<?php print render($page['footer_bottom']); ?>
</footer>
add css
.footer_bottom {
background: none repeat scroll 0 0;
border: 0 none;
bottom: 0;
min-height: 70px; /* NOTE: can be removed */
position: fixed;
text-align: center;
width: 100%;
z-index: 9;
}
.footer_bottom section.block {
margin:0;
padding: 1px 19px;
}
add a new region to subtheme.info
regions[footer_bottom] = 'footer_bottom'
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Screen shot 2013-04-15 at 1.04.36 PM.png | 82.86 KB | busla |
Comments
Comment #1
busla commentedIt offsets 1 span.
I´m using bootswatch. The grey div is my footer.
Comment #2
markhalliwellConsidering this is for a specific use case, I'm marking this as documentation and fixed.
Comment #3.0
(not verified) commentedchange some caption for css