Skip to content

Commit

Permalink
Change to use parts not block-template-parts #35
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Feb 8, 2022
1 parent fd9f3c7 commit 9752adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/template-part.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function thisis_render_block_core_template_part( $attributes, $content, $block )
} else {
// Else, if the template part was provided by the active theme,
// render the corresponding file content.
$template_part_file_path = get_stylesheet_directory() . '/block-template-parts/' . $attributes['slug'] . '.html';
$template_part_file_path = get_stylesheet_directory() . '/parts/' . $attributes['slug'] . '.html';
if ( 0 === validate_file( $attributes['slug'] ) && file_exists( $template_part_file_path ) ) {
$content = file_get_contents( $template_part_file_path );

Expand Down

0 comments on commit 9752adc

Please sign in to comment.