Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @ilithio,

    There are several ways to add CSS code to your site. This article will explain to you more about that.

    I hope it will help. Feel free to reach out to us if you have any further queries.

    Kind regards,
    Herman 🙂

    Thread Starter Host Domination

    (@ilithio)

    hello, maybe I couldn’t explain myself well.
    I would like to insert in my functions.php a link to the custom file in Astra theme child “block editor styles.css” instead themes/astra/inc/assets/css/block-editor-styles.css

    I tried with:

    add_editor_style('block-editor-styles.css');

    but this doesn’t work… can you help me?

    Hi @ilithio,

    We can add our CSS code in our WordPress site using the methods explained in the article I provided above. And for custom PHP code, we can add it in the functions.php of our child-theme or using a plugin like Code Snippets.
    
    Actually, I am still can’t understand clearly about your query. Could you please let us know what you would like to achieve on your site?

    Kind regards,
    Herman 🙂

    Thread Starter Host Domination

    (@ilithio)

    I would like to change the css of the internal wordpress editor, through the child theme.

    Hi @ilithio,

    I am not sure what you would like to do exactly with the WordPress editor, but you can use the following code as a reference

    add_action('admin_head', 'call_back');
    
    function call_back() {
    	echo '<style>
    	.ast-separate-container #wpwrap #editor .edit-post-visual-editor, .ast-separate-container .block-editor-writing-flow {
    		background-color: #ff0000;
    	}
    	</style>';
    }

    That code above will change the default WordPress editor background color to red, looks like this.
    
    I hope that will help. Feel free to reach out to us if you have any further queries.

    Kind regards,
    Herman 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Editor WordPress Style css: how to edit?’ is closed to new replies.