@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-2015/>
  a sioc:Post ;
  dc:title "Pre-footer" ;
  dcterms:identifier 155060 ;
  dc:modified "2026-11-19T07:34:23Z"^^xsd:dateTime ;
  dc:created "2026-11-19T07:21:44Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-2015/pre-footer/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """<ul class="lh_portfolio-meta"><li><strong>Part of:</strong> <a href="https://lhero.org/portfolio/lh-2015/">LH 2015</a></li></ul>
<p class="wp-block-paragraph">Since 2.37.0 every theme template has a <code>pre-footer</code> template part just before the footer, in an <code>aside</code>. It is for per-site content that belongs at the bottom of normal pages but not in the footer itself, such as sponsors, partners, an acknowledgement of country or a newsletter signup. A site that doesn&#8217;t use it sees no change.</p>



<h2 class="wp-block-heading">Using it</h2>



<p class="wp-block-paragraph">Edit the part named Pre-footer in the Site Editor (it is registered in <code>theme.json</code>) and add blocks inside it. Since 2.37.1 the theme&#8217;s <code>parts/pre-footer.html</code> is the footer&#8217;s card structure with nothing in it, a Group with the class <code>site-footer</code> holding a Group with the class <code>site-info</code>, so whatever a site adds gets the footer&#8217;s card styling with no wrapper to build. It shows on every page whose template includes it: all the theme&#8217;s templates and <code>footer.php</code>. The wrapper element can be switched from <code>aside</code> to <code>section</code> in a template&#8217;s Template Part settings.</p>



<h2 class="wp-block-heading">Where it does not show</h2>



<p class="wp-block-paragraph">Templates that leave the part out don&#8217;t show it. That is the point: LH Image Gallery&#8217;s photo pages, for example, have the footer but not the pre-footer. Templates registered by plugins (bbPress, knowledge base, portfolio and others) only include the header and footer, so they don&#8217;t show the pre-footer unless the plugin adds <code>&lt;!-- wp:template-part {"slug":"pre-footer","tagName":"aside"} /--&gt;</code> before its footer. A part a theme doesn&#8217;t have renders nothing for visitors, so adding it is safe on any theme. A site&#8217;s own edited copy of a theme template, saved before 2.37.0, needs the line added by hand.</p>



<h2 class="wp-block-heading">Empty pre-footer</h2>



<p class="wp-block-paragraph">A pre-footer that holds nothing but empty Groups (the theme&#8217;s empty card) prints no HTML at all: no card and no <code>aside</code> landmark. Any other block added inside it counts as content. <code>template_part_has_content()</code> checks the part that actually renders, the site&#8217;s published copy or else the theme&#8217;s file, so an unpublished draft copy is ignored. <code>filter_empty_pre_footer()</code> applies it in block templates, and <code>footer.php</code> uses it for classic pages. The slug is filterable with <code>lh_2015_pre_footer_slug</code>.</p>
"""^^rdf:XMLLiteral ;
  sioc:content """Part of: LH 2015
Since 2.37.0 every theme template has a pre-footer template part just before the footer, in an aside. It is for per-site content that belongs at the bottom of normal pages but not in the footer itself, such as sponsors, partners, an acknowledgement of country or a newsletter signup. A site that doesn&#8217;t use it sees no change.



Using it



Edit the part named Pre-footer in the Site Editor (it is registered in theme.json) and add blocks inside it. Since 2.37.1 the theme&#8217;s parts/pre-footer.html is the footer&#8217;s card structure with nothing in it, a Group with the class site-footer holding a Group with the class site-info, so whatever a site adds gets the footer&#8217;s card styling with no wrapper to build. It shows on every page whose template includes it: all the theme&#8217;s templates and footer.php. The wrapper element can be switched from aside to section in a template&#8217;s Template Part settings.



Where it does not show



Templates that leave the part out don&#8217;t show it. That is the point: LH Image Gallery&#8217;s photo pages, for example, have the footer but not the pre-footer. Templates registered by plugins (bbPress, knowledge base, portfolio and others) only include the header and footer, so they don&#8217;t show the pre-footer unless the plugin adds &lt;!-- wp:template-part {"slug":"pre-footer","tagName":"aside"} /--&gt; before its footer. A part a theme doesn&#8217;t have renders nothing for visitors, so adding it is safe on any theme. A site&#8217;s own edited copy of a theme template, saved before 2.37.0, needs the line added by hand.



Empty pre-footer



A pre-footer that holds nothing but empty Groups (the theme&#8217;s empty card) prints no HTML at all: no card and no aside landmark. Any other block added inside it counts as content. template_part_has_content() checks the part that actually renders, the site&#8217;s published copy or else the theme&#8217;s file, so an unpublished draft copy is ignored. filter_empty_pre_footer() applies it in block templates, and footer.php uses it for classic pages. The slug is filterable with lh_2015_pre_footer_slug.
""" ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
