[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> header-stacked.php (source)

   1  <?php
   2  /**
   3   * Logo and navigation header block pattern
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_Two
   7   * @since Twenty Twenty-Two 1.0
   8   */
   9  
  10  return array(
  11      'title'      => __( 'Logo and navigation header', 'twentytwentytwo' ),
  12      'categories' => array( 'header' ),
  13      'blockTypes' => array( 'core/template-part/header' ),
  14      'content'    => '<!-- wp:group {"align":"full","layout":{"inherit":true}} -->
  15                      <div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 8rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->
  16                      <div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:site-logo {"align":"center","width":128} /-->
  17  
  18                      <!-- wp:spacer {"height":10} -->
  19                      <div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
  20                      <!-- /wp:spacer -->
  21  
  22                      <!-- wp:site-title {"textAlign":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"400","textTransform":"uppercase"}}} /-->
  23  
  24                      <!-- wp:spacer {"height":10} -->
  25                      <div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
  26                      <!-- /wp:spacer -->
  27  
  28                      <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"center"}} -->
  29                      <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /-->
  30                      <!-- /wp:navigation --></div>
  31                      <!-- /wp:group --></div>
  32                      <!-- /wp:group -->',
  33  );


Generated : Sat Aug 8 08:20:21 2026 Cross-referenced by PHPXref