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
Edit site: Changes to html files are not reflected in the site editor. #23106
If I make changes to a html file that is a template or template part,
those changes are shown correctly on the front, but the site editor still
shows the original unchanged content and markup.
-I made sure that no templates or template parts are saved.
-Clearing browser cache does not help.
-Testing a different browser did not help.
-It makes no different if I am viewing the entire page or select a single template part in the editor.
-Changing themes does not help:
Make a change to theme A, switch to theme B.
Make changes to theme theme B, and change back to theme A.
The site editor will show the old content and markup for theme A.
To reproduce
Steps to reproduce the behavior:
Install Gutenberg and enable full site editing
Install and activate a full site editing theme
Make sure there are no templates or template parts saved.
Open the site editor to check the original theme.
Open any theme html file and make any change.
View the theme on the front to see that the change is applied.
Open the site editor and see that the change is not applied.
Expected behavior
I expect changes to html files to be applied in the site editor.
Editor version (please complete the following information):
WordPress version: 5.4.2.
Gutenberg Version 8.3.0
Desktop (please complete the following information):
Just noting that I can reproduce on master: Manual edits to a theme's block-template-part HTML files do not get reflected in the full-site editor, even after a few hard-refreshes. @epiqueras, do you have any idea what the problem might be?
Activity
kjellr commentedon Jun 30, 2020
Just noting that I can reproduce on
master: Manual edits to a theme'sblock-template-partHTML files do not get reflected in the full-site editor, even after a few hard-refreshes. @epiqueras, do you have any idea what the problem might be?jffng commentedon Jun 30, 2020
I was able to get the site editor to reflect manual changes to the HTML files by doing the following:
Update Design)wp-admin, go toAppearance > Templates,Appearance > Template Partsand permanently delete all the posts saved there.If I had to guess, this behavior has something to do with the template part creation and resolution logic.
epiqueras commentedon Jun 30, 2020
This is only a problem with template parts, not templates from what I see.
Here is the fix: #23591.