can’t view some saved patterns or insert unsynced pattern
-
Hi folks,
Having a bit of trouble with my patterns. I don’t use them often, so I couldn’t say for sure when it broke, but the site is currently on WP 7. Seems similar to https://wordpress.org/support/topic/unable-to-insert-unsynced-patterns-in-posts-wordpress-7/ except I tried a user with editor permissions and still couldn’t insert an unsynced pattern.
Anyway, I had a synced pattern that I wanted to use in a recent post with a few modifications. It’s basically just a button with custom classes and text/link on the button. So I created a duplicate of the pattern, but toggled it to unsynced. Made my edits and went back to edit the post, but neither the synced pattern or the unsynced show up in the My Patterns folder.
If I type a / and then start typing part of the pattern name, I can get either to show up, but the unsynced pattern cannot be inserted. Clicking the name of the pattern does nothing (except change the color momentarily), and there are no relevant errors in the dev console.
I tested duplicating to a new synced pattern, and I can insert that one similar to the original, but none of these three patterns show up in My Patterns, although they are all visible under Appearance->Patterns.
I did disable all plugins and switched to Twenty Twenty, but still couldn’t insert the unsynced pattern.
Here’s the raw HTML of the original pattern:
<!-- wp:button {"className":"ewww-button aligncenter"} -->
<div class="wp-block-button ewww-button aligncenter"><a class="wp-block-button__link wp-element-button" href="https://ewww.io/fake-link/" rel="">Fake Text!</a></div>
<!-- /wp:button -->I did also try creating a new unsynced pattern, put a paragraph and button in there manually, and that one works just fine. So then I copied the above code into a new unsynced pattern, repeated my changes, and am unable to insert the new pattern.
Maybe it’s just a bug and needs fixed?
I compared the above with the new pattern that has a button, and it certainly looks different:
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"luminous-vivid-orange"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-luminous-vivid-orange-background-color has-background wp-element-button" href="https://ewww.io/fake-link/">Get Thingy</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->It does seem a little odd that the original has no “buttons” wrapper, not sure how it got like that exactly, but this partially-working state is just strange. Ideas?
You must be logged in to reply to this topic.