Hello! Yesterday I updated WordPress and now it gives me an error when doing visual editing:
Failed to load content css: https://the-geek.ru/wp-content/themes/T ... editor.css
How to solve this?
function technews_add_editor_styles() {
add_editor_style('editor.css');
}
add_action('init', 'technews_add_editor_styles');
The style file does not exist at all
The style file uses one or more @import() calls to include files, but the path is wrong
Your site is using SSL (your URL starts with https://), but the resources being loaded are trying to use un-encrypted http:// links
The URL being included is an external one, and is incorrect. So far primarily seen with Google Fonts, where a %2C is added to the end of the link (this is considered a comma, and the link is invalid from Googles point of view if it ends like this)
Joshua M wrote:I'm still not sure why do you want to remove it.. you can do it by removing the following fragment from TechNews/functions.php file:
- Code: Select all
function technews_add_editor_styles() {
add_editor_style('editor.css');
}
add_action('init', 'technews_add_editor_styles');
@import url('css/font.awesome.css');