Remove Font Awesome icon preload lines from site
-
One of the latest updates preloads Font Awesome icons, I don’t use Font Awesome, I use my own icons through icomoon so I’d like to remove the following lines from my website:
<link rel="preload" as="font" type="font/woff2" href="https://newtestsite.rockitpro.com/wp-content/themes/hueman/assets/front/webfonts/fa-brands-400.woff2?v=5.12.1" crossorigin="anonymous"/> <link rel="preload" as="font" type="font/woff2" href="https://newtestsite.rockitpro.com/wp-content/themes/hueman/assets/front/webfonts/fa-regular-400.woff2?v=5.12.1" crossorigin="anonymous"/> <link rel="preload" as="font" type="font/woff2" href="https://newtestsite.rockitpro.com/wp-content/themes/hueman/assets/front/webfonts/fa-solid-900.woff2?v=5.12.1" crossorigin="anonymous"/>
It seems the code is in this file: \hueman\functions\init-front.php
add_action( 'wp_head', 'hu_preload_fa_fonts'); function hu_preload_fa_fonts() { ?> <link rel="preload" as="font" type="font/woff2" href="<?php echo HU_BASE_URL .'assets/front/webfonts/fa-brands-400.woff2?v=5.12.1'; ?>" crossorigin="anonymous"/> <link rel="preload" as="font" type="font/woff2" href="<?php echo HU_BASE_URL .'assets/front/webfonts/fa-regular-400.woff2?v=5.12.1'; ?>" crossorigin="anonymous"/> <link rel="preload" as="font" type="font/woff2" href="<?php echo HU_BASE_URL .'assets/front/webfonts/fa-solid-900.woff2?v=5.12.1'; ?>" crossorigin="anonymous"/> <?php }
I know I need to remove the action or function and put it in my functions.php file in my child theme but I don’t know the exact code to do it, can anyone help me out with this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove Font Awesome icon preload lines from site’ is closed to new replies.