Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Remove page type from parent theme

Started by srg404 6 years ago · 5 replies · 773 views
6 years ago

Hello, I want to remove a "Page Template" from my parent theme in my child theme, because there are too many page type in page Template selector (admin).
How I can do that ?

Thanks in advance

6 years ago

Maybe it's complicated to understand my question.
So an image is certainly better, I just want to remove template in this list.

image|670x500

last edited 10/09/20 by srg404
6 years ago

Hi @paulhibbitts, your solution works fine 😉

Big thanks
Serge

👍 1
4 years ago

@Flop, AFAIK, there can only be a single config file for a plugin/theme.

You could try creating a plugin and inject JavaScript into Admin and hide page types based on the current user.

👍 2

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 2 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 483 3 weeks ago