Skip to content
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

Block patterns: Allow themes to show their patterns first #39500

Open
MaggieCabrera opened this issue Mar 16, 2022 · 1 comment
Open

Block patterns: Allow themes to show their patterns first #39500

MaggieCabrera opened this issue Mar 16, 2022 · 1 comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Type] Enhancement A suggestion for improvement.

Comments

@MaggieCabrera
Copy link
Contributor

What problem does this address?

Right now the only way for a theme to control the order in which the registered patterns in the default categories show in the inserter is via re-registering the already existing categories. This is even done by TT2.

What is your proposed solution?

It feels like theme patterns are always going to be more relevant to the user than the default ones from core, so it would be good to either have an option when registering the template for the sort order or make the theme ones show up first by default.

@richtabor
Copy link
Member

richtabor commented Apr 26, 2022

I've noticed this as well. TT2's patterns are actually not loading with priority, even with the default categories being re-rendered. I also think a theme's patterns should be given a higher priority than core/remote patterns.

@jordesign jordesign added [Type] Enhancement A suggestion for improvement. [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants