Archived topic
Possibility block patterns in a "patterns" folder?
4 replies · Started by Hans-Gerd on October 30, 2022
Hi,
I wanted to use the relatively new option to store block patterns in a "patterns" folder below the theme folder of generatePress (for example see here: https://fullsiteediting.com/lessons/introduction-to-block-patterns/#h-how-to-create-block-patterns).
This works for block themes, but unfortunately this folder gets deleted when GeneratePress updates. I could use another solution for this (like Child Theme), but I like this solution better in itself. Is there a solution so that the folder is not deleted during a theme update?
Thanks
Best regards,
Hans-Gerd
Hi there,
whenever a Theme is updated, WordPress overwrites the entire folder, it's not something we can change.
You would need to use a child theme or a plugin.
Hi David,
thanks for answer.
BTW: Do you mean a plugin like BlockMeister - Block Pattern Builder (https://de.wordpress.org/plugins/blockmeister/)?
Best Regards,
Hans-Gerd
Hi,
has been resolved. I have written my own plugin for this. Thanks
Best Regards,
Hans-Gerd
Glad to hear that!