Making a site for a client, I have some pages that the client won’t be able to edit or delete. These pages rely on specific page templates.

However, I don’t want these templates to be available for the client when creating new pages. Is there someway to hide these certain page template from the page attributes dropdown when creating new pages?

Thanks

2 Answers
2

Rather than defining them as custom page templates, you have an alternative.

Use the page specific templates, e.g. for a profile page, with the slug profile you could create a page-profile.php in your theme, or you can use page-21.php where 21 is the ID of that page/post.

Leave a Reply

Your email address will not be published. Required fields are marked *