Site logo

[Resolved] No styling in editor?

Home Forums Support [Resolved] No styling in editor?

Home Forums Support No styling in editor?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1755756
    Kev

    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:

    Editor example

    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?

    #1755764
    Leo
    Staff
    Customer Support

    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 🙂

    #1755792
    Kev

    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.

    #1755810
    Kev

    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.

    #1755868
    Leo
    Staff
    Customer Support

    Ahh yes. So you are using CSS to add underline to links?

    If so that will only work in the front end.

    #1755952
    Kev

    Thanks for the confirmation, Leo.

    #1758206
    Leo
    Staff
    Customer Support

    No problem 🙂

    Hopefully WP will make that possible in the future.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.