Disable eicons
-
Hello!
My question is about how to completely disable EICONS and should I do it?
You have an instruction (https://elementor.com/help/speed-up-a-slow-site/) how to speed up a site.
One of your recommmendations is to disable the EICONS using some code in functions.php file in a child theme:add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 ); function remove_default_stylesheet() { wp_deregister_style( 'elementor-icons' ); }This code works good and the eicons’ stylesheet with id=’elementor-icons-css’ is not loaded.
But the html code contains the following inline styles for eicons with id=’elementor-frontend-inline-css’ (in this example I replaced the domain address of my site with example.com):
<style id='elementor-frontend-inline-css' type='text/css'> @font-face{font-family:eicons;src:url(https://example.com/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.eot?5.10.0);src:url(https://example.com/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.eot?5.10.0#iefix) format("embedded-opentype"),url(https://example.com/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff2?5.10.0) format("woff2"),url(https://example.com/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff?5.10.0) format("woff"),url(https://example.com/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.ttf?5.10.0) format("truetype"),url(https://example.com/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.svg?5.10.0#eicon) format("svg");font-weight:400;font-style:normal} [class^="eicon"], [class*=" eicon-"] { font-family: "initial"; } [class^="eicon"]:before, [class*=" eicon-"]:before { content: ""; } </style>So I have two questions:
1) How can I remove this inline eicons styles?
2) And, as far as I understand, these styles are responsible only for eicons and if eicons are disabled for all users (except the administrator), will they not negatively affect the site’s performance and functionality, right?
Or may these inline styles contain something else and it is not recommended to disable them??Thanks for your attention and have a nice day!
The topic ‘Disable eicons’ is closed to new replies.