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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Remove page type from parent theme

Started by srg404 6 years ago · 5 replies · 622 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
3 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

3 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 Thomas, 1 week ago
2 51 8 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago