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 · 706 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

I know, this thread has been dormant for a long time, but it was actually super helpful just now.
Is there a way to do this only for specific users/groups?

Thanks so much

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 Anna, 4 days ago
4 101 14 hours ago
Support · by TomW, 4 days ago
2 78 1 day ago
Support · by Anna, 7 days ago
7 192 3 days ago
Support · by Anna, 7 days ago
9 157 3 days ago
Support · by stuart young, 6 days ago
2 103 6 days ago