You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make it more obvious in the site editor whether a template / template part is modified or reading from disk #66646
[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Feature] Templates APIRelated to API powering block template functionality in the Site Editor[Type] EnhancementA suggestion for improvement.
Especially in larger WordPress installations we almost never want templates / template parts to get modified in a production environment. Because when you do so you get locked out of code updates. And the templates/template-parts are usually managed in Git.
Currently it is almost impossible without manually checking every single templates action dropdown menu whether the template has bee modified or not.
It would be great to add a new field to the DataView that indicates whether the template has been modified. This field doesn't need to be enabled by default. But it should be one of the options of the DataView.
There is a hacky CSS was of achieving this which is basically doing:
[aria-label="Templates"] .dataviews-view-grid__card:has(input[type="checkbox"][aria-disabled="false"]){border:5px solid red !important;}
Which uses the fact that any modified templates have the checkbox enabled where as unmodified has the checkbox disabled. But an actual native solution would be much preferred :)
[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Feature] Templates APIRelated to API powering block template functionality in the Site Editor[Type] EnhancementA suggestion for improvement.
Activity
fabiankaegy commentedon Oct 31, 2024
There is a hacky CSS was of achieving this which is basically doing:
Which uses the fact that any modified templates have the checkbox enabled where as unmodified has the checkbox disabled. But an actual native solution would be much preferred :)
carolinan commentedon Nov 25, 2024
I would find this helpful when developing themes and testing, since there is no "reset all templates" option.
jasmussen commentedon Nov 13, 2026
I'm reopening this issue based on conversation in #39324.