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://wordpress.org/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
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!
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.
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.