What is the best way to remove page types from the interface?

Permalink
I have a custom theme with only one page type (if you can call it that). Namely inside the default.php file or the view.php file (and now a tooltip.php file).

I noticed that the other page types as found in the C5 default theme still show up (at least I think those are the files that correspond to these other page types...hard for me to still say where everything is).

I refer to full.php, left_sidebar.php, and blog_entry.php.

When creating a theme for a client where they only want a certain page type to be on their site I would like to remove these other page types from even appearing in the interface.

If it is possible to remove them what is the best way to do this? Just delete the files?

I guess I don't know where these page types are being pulled in from since the theme I am using doesn't even have any such types in it.

Carlos

 
TheRealSean replied on at Permalink Best Answer Reply
TheRealSean
If you go to the dashboard and the pages and themes > Page Types
Select Edit then in the bottom right there is a delete button that should delete the page type (dont delete the default.php)
carlos123 replied on at Permalink Reply
Neat. Thanks seanom.

Carlos
dpolcino replied on at Permalink Reply
Ok so I hit DELETE and get "You must delete all pages of this type before deleting this page type." That sentence doesn't even make too much sense to me. Delete all page types of this type? Like remove any real pages that are using this theme? Or is it saying remove all pages that are like that page in the layouts panel? A bit confused
Mnkras replied on at Permalink Reply
Mnkras
Its saying that pages using that page type exists, and that you cannot delete that page type until either those pages are deleted or changed to a different page type.

Mike
dpolcino replied on at Permalink Reply
Ok that's pretty much what I thought. Is there a screen that TELLS me what pages are using that layout?!
TheRealSean replied on at Permalink Reply
TheRealSean
If you go the dashboard and use the page search, under sitemap

You can run a search and filter pages by the "Page Type" that will then show all pages that need removing/changing
dpolcino replied on at Permalink Reply
Great, thanks
apc123 replied on at Permalink Reply
apc123
I'm trying to delete a page type that doesn't have any page associated with it but I still get the message about deleting all pages and versions of this type.

Any advice?

Thanks,
Anthony
mesuva replied on at Permalink Reply
mesuva
I think this can happen if you've still got pages in the Trash of the page type you are trying to delete.