Skip to content

Commit

Permalink
Added a header template part that leverages the rendered navigation b…
Browse files Browse the repository at this point in the history
…lock markup
  • Loading branch information
pbking committed Apr 27, 2021
1 parent b5bae9c commit 0744039
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions quadrat/template-parts/header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Displays the header.
* Needed until we have a consistent mechanism to render a navigation between FSE and classic menus.
*
* @package Quadrat
* @since 1.0.0
*
*/

require get_stylesheet_directory() . '/inc/render-navigation-block.php';
?>

<header class="site-header" role="banner">
<?php
echo do_blocks(
'<!-- wp:group {"style":{"spacing":{"padding":{"right":"35px","left":"35px"}}}} --><div class="wp-block-group" style="padding-right:35px;padding-left:35px">
<!-- wp:site-title /-->' .
render_navigation_block( 'primary' ) .
'</div><!-- /wp:group -->'
);
?>
</header>

0 comments on commit 0744039

Please sign in to comment.