Custom page type will not use default theme... unless I force it
Permalink
I created a custom theme for my site, installed it, and activated it.
I created a custom page type called "Recording". I created a template for it ("recording.php"), and included the template ONLY in my custom theme directory.
My new theme works well for most page types. When I add new pages for the standard page types (full, right_sidebar, etc), the new pages automatically use the new theme.
But when I create a new page using the page type "Recording", the newly added page automatically uses "Greek Yogurt" (the previously activated theme), even though Greek Yogurt has no template for "Recording".
When I inspect the design settings for that page, the page type is "Recording" and the theme is "Greek Yogurt".
When I manually change that particular page to use my custom theme, the page renders properly using my custom theme.
The "Defaults" page for the "Recording" page type shows that my custom theme is being used.
My custom theme is definitely activated. When I "Inspect" the theme, it shows that my template file "recording.php" will be used for the Recording page type.
I have turned off the Block, Overrides, and Full caches, and cleared the cache. No change.
What am I missing?
(Side note: I don't know if this is related, but when I installed my custom theme, it automatically activated it for me. I was surprised because the instructions I read on concrete5.org said I'd have to manually activate it.)
I created a custom page type called "Recording". I created a template for it ("recording.php"), and included the template ONLY in my custom theme directory.
My new theme works well for most page types. When I add new pages for the standard page types (full, right_sidebar, etc), the new pages automatically use the new theme.
But when I create a new page using the page type "Recording", the newly added page automatically uses "Greek Yogurt" (the previously activated theme), even though Greek Yogurt has no template for "Recording".
When I inspect the design settings for that page, the page type is "Recording" and the theme is "Greek Yogurt".
When I manually change that particular page to use my custom theme, the page renders properly using my custom theme.
The "Defaults" page for the "Recording" page type shows that my custom theme is being used.
My custom theme is definitely activated. When I "Inspect" the theme, it shows that my template file "recording.php" will be used for the Recording page type.
I have turned off the Block, Overrides, and Full caches, and cleared the cache. No change.
What am I missing?
(Side note: I don't know if this is related, but when I installed my custom theme, it automatically activated it for me. I was surprised because the instructions I read on concrete5.org said I'd have to manually activate it.)
first deactivate your theme . Again install and activate it.