Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There's a bug in zen classic. In page.tpl.php, there is no print $footer; so when you assign blocks to the footer region they don't get output.
The original code was:
<div id="footer-wrapper">
<div id="footer">
<?php print $footer_message; ?>
</div> <!-- /footer -->
</div> <!-- /footer-wrapper -->
I changed it to:
<div id="footer-wrapper">
<?php if ($footer or $footer_message): ?>
<div id="footer">
<?php if ($footer_message): ?>
<div id="footer-message"><?php print $footer_message; ?></div>
<?php endif; ?>
<?php if ($footer): ?>
<?php print $footer; ?>
<?php endif; ?>
</div> <!-- /#footer -->
<?php endif; ?>
</div> <!-- /footer-wrapper -->
I tried to create a patch file, which I've attached. Not sure it will work though as it's the first time I've created one. Fingers crossed...
Also, I'm not sure that this is the best method to print out the footer blocks and message. My intuition would be to put the message under the blocks, but the main zen theme has it above, so I followed that example.
Comment | File | Size | Author |
---|---|---|---|
zen-footer.patch | 889 bytes | OpenChimp |
Comments
Comment #1
JohnAlbinUm… oops.
Fixed!