Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Remove page type from parent theme

Started by srg404 6 years ago · 5 replies · 815 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 Marcel, 5 days ago
0 83 5 days ago
Support · by JakobDB, 6 days ago
1 89 5 days ago
Support · by ramenos, 7 days ago
3 103 6 days ago
Support · by gravinator, 2 weeks ago
3 228 7 days ago
Support · by Roger Parkinson, 2 weeks ago
3 308 2 weeks ago