Theme Files
This commit is contained in:
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
function my_block_theme_setup() {
|
||||||
|
add_theme_support( 'block-templates' );
|
||||||
|
}
|
||||||
|
add_action( 'after_setup_theme', 'my_block_theme_setup' );
|
||||||
|
|||||||
23
templates/index.html
Normal file
23
templates/index.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html <?php language_attributes(); ?>>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title><?php bloginfo( 'name' ); ?></title>
|
||||||
|
<?php wp_head(); ?>
|
||||||
|
</head>
|
||||||
|
<body <?php body_class(); ?>>
|
||||||
|
<!-- Block Template Here -->
|
||||||
|
<header>
|
||||||
|
<nav><?php wp_nav_menu(); ?></nav>
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
<!-- Insert block-based content here -->
|
||||||
|
<div id="content">
|
||||||
|
<!-- Example: Use a WordPress block pattern or dynamic content -->
|
||||||
|
<p>Welcome to my site!</p>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<?php wp_footer(); ?>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user