Archived topic
No styling in editor?
6 replies · Started by Kev on April 29, 2021
Hey folks,
Just flipped me site over the GP, and everything is great on the front end, but there's no formatting in the editor at all. That's not really a major problem, but things like links and code blocks aren't being styled so it's almost impossible to discern a link from normal text. Here's an example from my editor window:

I'm using custom fonts (added to functions.php using a child theme). I'm not sure if that's got anything to do with it, but I wouldn't have expected so.
So how do I go about getting styling back in my editor window?
Hi there,
That's strange. Haven't had this issue reported before.
Have you tried disabling all plugins and custom functions to test?
Let me know :)
Managed to work around the issue by importing my child theme's stylesheet and creating an editor stylesheet to add anything that was missing.
Added the following to my functions.php, for anyone else having this problem:
// Gutenberg custom stylesheet
add_theme_support('editor-styles');
add_editor_style( 'style.css' );
add_editor_style( 'editor-style.css' );
add_filter( 'pre_get_posts', 'exclude_category_home' );
This may be the wrong way to do it, so will wait for feedback form support before marking this resolved.
I think it's because GP doesn't underline links by default. I prefer to have my links the same colour, but underlined, so it's picking up the same colour from the customiser, so the link doesn't show as different.
I've work around it with my solution above.
Ahh yes. So you are using CSS to add underline to links?
If so that will only work in the front end.
Thanks for the confirmation, Leo.
No problem :)
Hopefully WP will make that possible in the future.