Skip to content

While using CBT with TwentyTwentyFive all pattern are locked - in the current theme #758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dechent-medienkommunikation opened this issue Mar 7, 2025 · 1 comment

Comments

@dechent-medienkommunikation

After exporting a ZIP with CBT all pattern are locked - in the current running theme. I'm using TwentyTwentyFive.
I'm developing a new site for a client and I'm in that phase the only user and admin of course.

I can duplicate a pattern and give it a new name - that is unlocking it and I can use it - but have to change all instances - that's annoying.

  • Is this a bug?
  • 2025 theme issue?
  • Did I something wrong?
  • And how can I unlock the patterns? in the database? theme.js? anywhere?

Thanks for any help - kind of stuck here.

patrick

@pbking
Copy link
Contributor

pbking commented Mar 15, 2025

It sounds like you used the "Export Patterns" feature of Create Block Theme.

Which is... very dangerous.

Your synced patterns, which were stored in the database, are now in the theme (as UNsynced patterns).

To get those back you have a few options, the most straightforward just to "duplicate" each of those patterns. That will copy it from your theme and BACK to the database. Keep in mind that all of the patterns that you create will NOT ship with your theme. You can't (yet) ship synced patterns with themes. (At least not without a plugin or something).

Alternatively you CAN use something like the above mentioned plugin I'm tinkering with that will do that copying for you. But that's not entirely straightforward and might not be what you're looking for either.

Sorry you're having pattern problems!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants