Skip to content

Commit

Permalink
Merge pull request #3 from helsingborg-stad/fix/remove-template-select
Browse files Browse the repository at this point in the history
Avoid double display of template selector in Gutenberg
  • Loading branch information
sebastianthulin authored Aug 24, 2022
2 parents 7f28911 + 9c7315b commit 5142a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pageparentdiv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
include('attributes/parent.php');
}

if (count(get_page_templates($post)) > 0 && get_option('page_for_posts') != $post->ID) {
if (count(get_page_templates($post)) > 0 && get_option('page_for_posts') != $post->ID && !get_current_screen()->is_block_editor()) {
include('attributes/template.php');
}

Expand Down

0 comments on commit 5142a45

Please sign in to comment.