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.
By adp123 on
Hi Guys,
I'm trying to override the theme for the footer section of my zen subtheme, which according to everything I have read is a simple task. I have simply created a copy of block.tpl.php in my theme and named it block-footer.tpl.php but it is not having any effect on the footer region no matter how I edit the file. I have cleared all caches and the theme registry but with no success. Am I missing something trivial here?
Thanks.
Comments
If you want to theme the
If you want to theme the footer region, create the footer.tpl.php and copy the code for the footer section from the page.tpl.php and paste it in the footer.tpl.php.
Here is the code:
then in the page.tpl.php add this line:
And clear the cache.
Then you can edit the footer.tpl.php the way you want.
You usually have to have the
You usually have to have the base template as well as the custom one.
e.g. For block-footer.tpl.php to work you need to also have block.tpl.php included in your theme directory.
it works!
I can confirm that I had the exact same problem and rbriskie's solution worked perfectly for me. Thanks! I am using Drupal 6.22.