Retrieve a list of files passed down by parent theme(s) #29504
Unanswered
chrispytoes
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a theme that searches for component files with my own naming syntax. I want these special component files to override from one theme to the next. For some of these component files, there will be default fallbacks in my base theme, but most will be created by the theme user. So If I simply search my own theme's directory structure, that wouldn't include the theme files passed down by the parent project/theme.
I need a way to locate my component template files in each parent theme going up, so I can interpret them with my naming syntax, while also allowing overrides and fallbacks from one theme to the next.
I have two ideas on how I can potentially do this, so I'm just looking for some confirmation on what is best/possible.
Beta Was this translation helpful? Give feedback.
All reactions