Created
June 6, 2025 21:59
-
-
Save NickGreen/010566ad9aa25d8e09d9c9bd95648360 to your computer and use it in GitHub Desktop.
Example FSE template html file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wp:template-part {"slug":"header","tagName":"header"} /--> | |
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> | |
<main class="wp-block-group"> | |
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"backgroundColor":"base","textColor":"contrast","layout":{"type":"constrained"}} --> | |
<div class="wp-block-group alignfull has-contrast-color has-base-background-color has-text-color has-background" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> | |
<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontStyle":"normal","fontWeight":"700"}}} --> | |
<h1 class="wp-block-heading has-text-align-center" style="font-style:normal;font-weight:700"><?php echo esc_html__( 'Welcome to Our Platform', 'your-theme-textdomain' ); ?></h1> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"align":"center","fontSize":"large"} --> | |
<p class="has-text-align-center has-large-font-size"><?php echo wp_kses_post( __( 'Discover the <strong>best solutions</strong> for your business needs', 'your-theme-textdomain' ) ); ?></p> | |
<!-- /wp:paragraph --> | |
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} --> | |
<div class="wp-block-buttons"> | |
<!-- wp:button {"backgroundColor":"contrast","textColor":"base"} --> | |
<div class="wp-block-button"> | |
<a class="wp-block-button__link has-base-color has-contrast-background-color has-text-color has-background wp-element-button" href="#contact"><?php echo esc_html( __( 'Get Started', 'your-theme-textdomain' ) ); ?></a> | |
</div> | |
<!-- /wp:button --> | |
</div> | |
<!-- /wp:buttons --> | |
</div> | |
<!-- /wp:group --> | |
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|40","left":"var:preset|spacing|40"}}}} --> | |
<div class="wp-block-columns alignwide"> | |
<!-- wp:column --> | |
<div class="wp-block-column"> | |
<!-- wp:heading {"level":3} --> | |
<h3 class="wp-block-heading"><?php echo esc_html__( 'Feature One', 'your-theme-textdomain' ); ?></h3> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph --> | |
<p><?php echo esc_html__( 'Description of your first amazing feature goes here.', 'your-theme-textdomain' ); ?></p> | |
<!-- /wp:paragraph --> | |
</div> | |
<!-- /wp:column --> | |
<!-- wp:column --> | |
<div class="wp-block-column"> | |
<!-- wp:heading {"level":3} --> | |
<h3 class="wp-block-heading"><?php echo esc_html__( 'Feature Two', 'your-theme-textdomain' ); ?></h3> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph --> | |
<p><?php echo esc_html__( 'Description of your second amazing feature goes here.', 'your-theme-textdomain' ); ?></p> | |
<!-- /wp:paragraph --> | |
</div> | |
<!-- /wp:column --> | |
</div> | |
<!-- /wp:columns --> | |
</main> | |
<!-- /wp:group --> | |
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment