gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Can't select pattern on editor on a classic theme (CPTs, posts or pages)

Open ltrihan opened this issue 2 years ago • 3 comments

Description

I created a pattern that I try to call via the editor (of a CPT, a post or a page), the pattern appears in the list of blocks but nothing happens if I click on it

Sorry if the issue already exists, I'm a newbie, I tried to searched but with the pattern keyword : 848 results 🫠

Step-by-step reproduction instructions

  1. On a classic theme, create a pattern thanks to the page /wp-admin/edit.php?post_type=wp_block
  2. Go to any post type, and try to load it from the editor

Screenshots, screen recording, code snippet

No response

Environment info

Custom classic theme in 6.4.3 and tested in 6.5-RC3

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

ltrihan avatar Mar 20 '24 00:03 ltrihan

Hi @ltrihan - I'm unable to recreate this when using one of the bundled classic themes (like TwentyTwenty, TwentyNineteen etc). Are you able to try with one of the older bundled themes as well and see if it is reproducible?

jordesign avatar Mar 20 '24 02:03 jordesign

Hi @jordesign, same problem still without any plugin, tested on TwentyTwenty and TwentyNineteen, on 6.5-RC and 6.4.3

ltrihan avatar Mar 20 '24 08:03 ltrihan

UPDATE : sorry it's my bad, it's because I made a nasty copy and paste of a composition on an FSE theme where there were template parts header and footer. By deleting them it works 👌🏻 sorry for the wasting time 🫣

ltrihan avatar Mar 20 '24 08:03 ltrihan