Support » Plugin: Advanced Custom Fields: Font Awesome Field » Failed to load content css

  • got an error at the admin side…
    Failed to load content css: //cdn.jsdelivr.net/fontawesome/4.7.0/css/font-awesome.min-rtl.css

    every tinymce being used

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi, I think the developer will send you soon the solution.
    Meanwhile I can give you temporal solution, give me some minutes and I will find the fix that I did for one client.

    1) Open this file:
    /wp-content/plugins/advanced-custom-fields-font-awesome/better-font-awesome-library/better-font-awesome-library.php

    2) Go to the line number 588

    3) You will see this:

    	private function set_stylesheet_url( $version ) {
    		$this->stylesheet_url = '//cdn.jsdelivr.net/fontawesome/' . $version . '/css/font-awesome' . $this->get_min_suffix() . '.css';
    	}

    4) Replace with this new code:

    	private function set_stylesheet_url( $version ) {
    		$sufix = $this->get_min_suffix();
    		if($sufix contains "rtl") {
    			$this->stylesheet_url = 'http://cdn.delreyagency.com/font-awesome.min-rtl.css';
    		} else {
    			$this->stylesheet_url = '//cdn.jsdelivr.net/fontawesome/' . $version . '/css/font-awesome' . $sufix . '.css';
    		}
    	}
    Plugin Author Matt Keys

    (@mattkeys)

    Amitrahav,

    I am working on a new version of this plugin and I wonder if you would be interested in beta testing to make sure this RTL issue works in the new version?

    It can be downloaded here: https://wordpress.org/plugins/advanced-custom-fields-font-awesome/advanced/

    Scroll to the bottom of the page and look for ‘Previous Versions’ and select 2.0.0 from the list.

    Download v2.0.0 Beta

    mosheisrlaw

    (@mosheisrlaw)

    is there a fix for this error?
    Failed to load content css: //cdn.jsdelivr.net/fontawesome/4.7.0/css/font-awesome.min-rtl.css

    Plugin Author Matt Keys

    (@mattkeys)

    Hmmm .. I don’t believe that jsDelivr offers a ‘right to left’ variation of Font Awesome. A quick google finds a right-to-left port of the Font, but it hasn’t been updated in 2 years.

    I will look into wether or not WordPress will let me ‘disable’ the ‘-rtl’ prefix that it is adding to the end of this URL which is preventing it from loading properly.

    Plugin Author Matt Keys

    (@mattkeys)

    mosheisrlaw,

    Do you have any third party plugins active that enable the right-to-left support on your site, or is that being handled by WordPress itself?

    mosheisrlaw

    (@mosheisrlaw)

    My WordPress Theme support right-to-left. but I haven’t had this kind of problem before updating to WordPress latest update…

    Plugin Author Matt Keys

    (@mattkeys)

    mosheisrlaw,

    I’ve been trying to reproduce the issue in my development environment so I can find a solution for right-to-left users.

    Interestingly even after making my local environment Arabic, the FontAwesome library loads successfully.

    I’ve seen this issue pop up once before with another user as well; so I’d like to get it fixed.

    I am going to need some help reproducing the issue. If you are able to provide further insight into what settings your theme is using that cause this issue that would be great. I am thinking maybe there is a plugin enabled, or something in the themes functions.php file. If you are unsure what you are looking for, other options that would help me would include sending me a copy of the theme in a zip, or providing me access to the site admin area. You can contact me through my sites contact form to send any private/confidential info: https://mattkeys.me

    Thanks,

    Matt

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Failed to load content css’ is closed to new replies.