• Resolved Victor_K

    (@yylzcom)


    Hi,

    When I tried to optimize the Google Pagespeed score, I got the error message:

    Warnings: Lighthouse was unable to automatically check the font-display value for the origin

    Then I found out the problem was solved in the version of 5.13.0

    Could you please check and do a fix?

    Thanks and best regards!

    * I tried to post on the support forum, but the thread was not shown. I was not sure it had been sent out successfully, so I come and send it here. I apologize if it caused any inconvenience.

    • This topic was modified 2 years, 11 months ago by Victor_K.
    • This topic was modified 2 years, 11 months ago by Victor_K.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Andrew Misplon

    (@misplon)

    Hi Victor

    No worries at all. Your topic is available on the Puro forum, it just needed to be manually approved.

    I’m not sure font-display has a valid place when it comes to icon fonts. I don’t know that the tool being used can tell the difference between a font used for normal text and a font used for icons. A more detailed explanation of the issues surrounding font-display and icons can be found here: https://www.zachleat.com/web/font-display-icon-fonts/.

    Ultra, unfortunately, can’t be normally upgraded from Font Awesome 4.7 to the 5+ version without a migration being done. What you could do though is dequeue Font Awesome from the theme and then make use of the Font Awesome plugin https://www.ads-software.com/plugins/font-awesome/.

    To dequeue Font Awesome, add the following to the Code Snippets plugin or a child theme functions.php file:

    function ultra_child_dequeue_styles() {
    	wp_dequeue_style( 'font-awesome' );
    }
    add_action( 'wp_enqueue_scripts', 'ultra_child_dequeue_styles', 11 );

    Set the snippet to run on the site front-end. Save and activate.

    Perhaps give that a go in conjunction with the Font Awesome plugin and let me know how you get on.

    Cheers

    Andrew

    Thread Starter Victor_K

    (@yylzcom)

    Andrew Misplon,

    Thanks for your prompt reply. I tried but the version of 4.70 was still there. I guess it is written ./font-awesome/css/font-awesome.min.css:4 and ./font-awesome/css/font-awesome.css:10:.

    I choose to leave it there and wait for future official updates, to avoid any issues.

    Thanks again!

    Theme Author Andrew Misplon

    (@misplon)

    Hi Victor

    I don’t have any plans to migrate from FA 4 to 5 at the moment. When able, please, take a screenshot of your Code Snippets snippet or if you’ve used a child theme or custom plugin, of the implementation of the wp_dequeue_style function. You can upload screenshots to imgur.com or any similar cloud sharing site or public location and share the link. Thanks.

    Theme Author Andrew Misplon

    (@misplon)

    You’re welcome to leave it you’d prefer. The function works for me when implemented in Code Snippets. I have the snippet set to run on the site front-end, and the snippet is activated. You can save but not activate a snippet in Code Snippets which sometimes goes unnoticed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upgrade FontAwesome from 4.7.0 to 5.13.0 or latest’ is closed to new replies.