Failed to load content css

GK User
Thu Jun 08, 2017 9:37 pm
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?
User avatar
Junior Boarder

Joshua M
Fri Jun 09, 2017 7:44 am
Hi,
I don't understand - this css file is needed only for your page/post visual editor in the backend. I can't see any problem with your website https://the-geek.ru/
User avatar
Moderator

GK User
Fri Jun 09, 2017 2:20 pm
I understand, but how to remove it now?
User avatar
Junior Boarder

Joshua M
Tue Jun 13, 2017 7:31 am
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');
User avatar
Moderator

GK User
Thu Jul 13, 2017 11:45 am
I have the same problem!
The solution for the developers is here: https://wordpress.org/support/topic/rea ... st-9221234

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)
User avatar
Junior Boarder

GK User
Thu Jul 13, 2017 11:56 am
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');

Hi Joshua,

If I delete this fragment, I don't see style in editor.
User avatar
Junior Boarder

Joshua M
Fri Jul 14, 2017 6:52 am
Try to edit your editor.css file instead and remove this line:
Code: Select all
@import url('css/font.awesome.css');
User avatar
Moderator

GK User
Fri Jul 14, 2017 7:37 am
Hi Joshua
I commented this line, but everything is still the same. I'll watch for the situation.
User avatar
Junior Boarder

Joshua M
Mon Jul 17, 2017 7:36 am
Could you please provide me with your website back-end and FTP access via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.