FEATURE Introducing a template part that create a front header block
This commit is contained in:
parent
7430cea756
commit
4167904e8c
8
template-parts/front-header.php
Normal file
8
template-parts/front-header.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
<?php
|
||||
$block_content = '<!-- wp:front-header/front-header -->
|
||||
<section class="wp-block-front-header-front-header alignfull block-front-header"><div class="front-header__innerblocks"><!-- wp:carhop-blocks/heading -->
|
||||
<div class="wp-block-carhop-blocks-heading carhop-heading carhop-heading--hierarchy-classic"><div class="carhop-heading__innerblocks"><!-- wp:heading {"textAlign":"center","level":1,"style":{"elements":{"link":{"color":{"text":"var:preset|color|light"}}}},"textColor":"light"} -->
|
||||
<h1 class="wp-block-heading has-text-align-center has-light-color has-text-color has-link-color">historique</h1>
|
||||
<!-- /wp:heading -->';
|
||||
echo do_blocks($block_content);
|
||||
Loading…
Reference in New Issue
Block a user