Make WordPress Core

Ticket #61438: 61438.page-templates.diff

File 61438.page-templates.diff, 2.0 KB (added by sabernhardt, 4 months ago)

Option 1: Adding a Spacer block to each Page template

  • src/wp-content/themes/twentytwentytwo/templates/page-large-header.html

     
    66</main>
    77<!-- /wp:group -->
    88
     9<!-- wp:spacer {"height":32} -->
     10<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
     11<!-- /wp:spacer -->
     12
    913<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
  • src/wp-content/themes/twentytwentytwo/templates/page-no-separators.html

     
    99
    1010<!-- wp:post-content {"layout":{"inherit":true}} /-->
    1111
     12<!-- wp:spacer {"height":32} -->
     13<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
     14<!-- /wp:spacer -->
     15
    1216<!-- wp:group {"layout":{"inherit":true}} -->
    1317<div class="wp-block-group">
    1418<!-- wp:post-comments {"style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--></div>
  • src/wp-content/themes/twentytwentytwo/templates/page.html

     
    1717
    1818<!-- wp:post-content {"layout":{"inherit":true}} /-->
    1919
     20<!-- wp:spacer {"height":32} -->
     21<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
     22<!-- /wp:spacer -->
     23
    2024<!-- wp:group {"layout":{"inherit":true}} -->
    2125<div class="wp-block-group">
    2226<!-- wp:post-comments {"style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--></div>