Setting the styles on any custom post type’s post content block makes those styles apply to the post editor as well. Unfortunately this doesn’t appear to be working for the default post type for some reason.
Step-by-step reproduction instructions:
Open the Themer, create a template for Single item: Post
Edit the template and set styles on the Post Content block
Edit a post using the post editor and notice the styles aren’t applied
This works perfectly with custom post types.
There are no unique console errors between the custom post type and the default post type.
Checking the css that is loaded on the page, the custom styles applied to the post content are not loaded at all on the default post editor, so it is not a specificity/override issue.
@Louis, if there is anything you can suggest to help us narrow this down, we will be grateful, as apart from recreating the whole site piece by piece until we find what is preventing it from working, there is no clear path forward from our side.
Perhaps the fact that the styles do not load at all in the editor can give you a clue?
Would it be possible for me to take a quick look at this on the (client) live installation or not?
If not, I’m wondering if there is some kind of issue with calling the template content in some way… A network view in the browser console might lead to an error?
No, what is confusing is, it works perfectly with a custom post type in the same site using the identical configuration. What is also confusing is, on a clean site using the same configuration for the default post type it works perfectly also.
Basically, something is interfering with this specific site and preventing the styles from being loaded in the editor only for the default post type and we haven’t been able to isolate it or replicate it on another site.
Thank you very much for the feedback, I’m glad we finally got to the bottom of this.
If you do run into any issues, I’d be grateful if you could let me know.