Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Remove page type from parent theme

Started by srg404 6 years ago · 5 replies · 889 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 stell, 7 days ago
4 235 5 days ago
Support · by gravinator, 1 month ago
4 441 5 days ago
Support · by Gravver, 2 weeks ago
6 278 1 week ago
Support · by Marcel, 4 weeks ago
2 337 1 week ago
Support · by blu3prince, 2 weeks ago
1 251 2 weeks ago