Page Templates no longer Appears after WordPress 6.5 – Block Editor
-
After update to WordPress 6.5, the page template option under “Summary” in the Block Editor is no longer visible. I disabled ALL plugins and change to WordPress 2024 default template and still not working. Any suggestions?
-
Please follow the troubleshooting suggested at https://www.ads-software.com/support/topic/read-this-first-wordpress-master-list/#post-14157464
So I figured it out. It seems to be when creating the folder “templates” in your theme and adding an index.html file inside of it, the Classic template no longer show. Has this method change as far as using the full site editor to build the blog?
I just had the same issue, but you can click quick edit to change page template.
I have a child theme of 2024 and I have some PHP templates. How I assign the template to the page has changed in wordpress 6.5. You used to be able to go to the page, then under summary there was an option for page templates. Looks like its gone on pages that use my PHP templates. For normal pages template appears but only allows me to change to the WordPress block templates.
The fix for me any way is to use quick edit, then select my custom php template. Hope this helps someone, it took me a while to figure this out. lolThanks for your tip. I have the same problem. It also seems to occur with posts. In the template management, it is also no longer possible to rename templates as described here. Too bad
Template Editor
- This reply was modified 7 months, 2 weeks ago by Thomas Cigolla.
thanks for the info and the work-around
@justincodes. Thank you, quick edit works. But is there a solution now without a quick edit?
@sergeygabrielyan Check your theme files. I mentioned this above
It seems to be when creating the folder “templates” in your theme and adding an index.html file inside of it, the Classic template no longer show.
I think I’ve found the solution. By registering
Custom Templates
intheme.json
, theSwap Template
option has been added to theTemplate Options
section.Screenshot – Custom template files
Page Screenshot Without
Custom Templates
intheme.json
.Page Screenshots With
Custom Templates
intheme.json
. Screen 1, Screen 2, Screen 3Custom Templates code
{ "version": 3, "customTemplates": [ { "name": "archive-campus", "postTypes": [ "page" ], "title": "Archive Campus" }, { "name": "archive-event", "postTypes": [ "page" ], "title": "Archive Event" }, { "name": "archive-program", "postTypes": [ "page" ], "title": "Archive Program" }, { "name": "emptycanvas", "postTypes": [ "page" ], "title": "Empty Canvas" }, { "name": "page-my-notes", "postTypes": [ "page" ], "title": "Page My Notes" }, { "name": "page-past-events", "postTypes": [ "page" ], "title": "Page Past Events" }, { "name": "page-search", "postTypes": [ "page" ], "title": "Page Search" }, { "name": "single-campus", "postTypes": [ "page" ], "title": "Single Campus" }, { "name": "single-event", "postTypes": [ "page" ], "title": "Single Event" }, { "name": "single-professor", "postTypes": [ "page" ], "title": "Single Professor" }, { "name": "single-program", "postTypes": [ "page" ], "title": "Single Program" } ] }
Did they stop supporting php files as custom templates? I’ve tested registering my .php templates that are located under
/templates
intheme.json
but it only works for html files.
Am I missing anything?// offers.php located in /templates
// with/without index.php in /templates - Block editor template dropdown will not show Swap Template
{
"version": 3,
"customTemplates": [
{
"name": "offers",
"postTypes": ["page"],
"title": "Offers"
}
]
}Since upgrading to 6.5 from 6.4 I’ve been using the quick edit work-around, thanks @justincodes
but would definitely want information on why this is happening.@sergeygabrielyan I recognized those custom post types, ha! I just ran into this same problem, and your post showed up in Google results, thank you so much for the solution!
For the record, all I needed to add to my theme.json file was the following and then I could successfully select my custom page template from the page editor screen:
"customTemplates": [
{
"name": "emptycanvas",
"postTypes": ["page"],
"title": "Empty Canvas"
}
]- This reply was modified 5 months, 2 weeks ago by bradschiff.
I came across ticket #61210 on the WordPress core trac system . The ticket has similar information about the issue, it seems there haven’t been any recent updates on a potential patch. As it might be a Gutenberg Issue and if there was a conscious decision not to support PHP templates, but it is very likely that this was missed….
This works on Pages, but on custom post types, there is no “Template” drop down in quick edit – even for those custom post types with “Page Attributes” enabled. Any ideas?
- You must be logged in to reply to this topic.