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 lakshminp on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0-beta10
Description:
Currently the region names for footer are:
footer_firstcolumn: 'Footer first column'
footer_secondcolumn: 'Footer second column'
footer_thirdcolumn: 'Footer third column'
footer_fourthcolumn: 'Footer fourth column'
footer: Footer
It does not make sense to have variants of footer for the first 4 regions and then just plain footer for the last region. Also we should avoid naming regions based on their layout for responsive regions. Also footer needs to fit more in with other region naming conventions where we have used first, second etc.
The names are changed to:
footer_first: 'Footer first'
footer_second: 'Footer second'
footer_third: 'Footer third'
footer_fourth: 'Footer fourth'
footer_fifth: 'Footer fifth'
The new markup and regions for Bartik's footer are as follows....
<div id="site-footer__wrapper">
<footer class="site-footer">
{% if page.footer_first or page.footer_second or page.footer_third or page.footer_fourth %}
<div class="site-footer__top clearfix">
{{ page.footer_first }}
{{ page.footer_second }}
{{ page.footer_third }}
{{ page.footer_fourth }}
</div>
{% endif %}
{% if page.footer_fifth %}
<div id="site-footer__bottom role="contentinfo">
{{ page.footer_fifth }}
</div>
{% endif %}
</footer>
</div>
The new footer will now look like this:
Impacts:
Site builders, administrators, editors
Themers