• Resolved jhempy

    (@jhempy)


    I’m trying to create a child theme based on Raft, but when my child theme is activated and I try to customize, I get these errors:

    “Template part has been deleted or is unavailable: header”

    and

    “Template part has been deleted or is unavailable: footer”

    My functions.php looks like this:

    <?php
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
    	wp_enqueue_style( 'child-style',
    		get_stylesheet_uri(),
    		array( 'parenthandle' ),
    		wp_get_theme()->get( 'Version' ) // This only works if you have Version defined in the style header.
    	);
    }

    My style.css looks like this:

    /*
    Theme Name:     raft-child-test
    Template:       raft
    Text Domain:    rafttest
    */

    Am I missing something? This is how I normally start child themes, but this is the first time I’m trying to build a child theme from a FSE theme.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme’ is closed to new replies.