Resolved

font awesome style

General WordPress started by Aivaras K Dec 3, 2015 9 replies
Aivaras K Dec 3, 2015 · 1:52 pm #2776

Hi Andrew,

i have a little problem with font awesome – i want add all plugins css to one file “style.css”. In child theme funktion.php i have deregistered font awesome stylesheet:

function wps_deregister_styles() {
	wp_deregister_style( 'font-awesome' );
}
add_action( 'wp_print_styles', 'wps_deregister_styles', 100 );

then I have copied fonts folder from font-awesome to ultra-child folder.
Then I have copied code from font-awesome.min.css to my style.css im my child theme and i have changed to this:

@font-face {
  font-family: 'FontAwesome';
  src: url('/fonts/fontawesome-webfont.eot?v=4.3.0');
  src: url('/fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('/fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('/fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('/fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('/fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

but this don’t want work. Where my thinking error, or it is impossible to do?

Sorry for my bad english 🙂

Puro Support Puro Dec 23, 2015 · 4:03 am #2813

Hi Aivaras

Apologies for missing this post. We had email notifications earlier in the month which have now been resolved.

Have you made any progress with the above challenge?

Aivaras K Dec 23, 2015 · 10:45 am #2852

Hi,
problem still exist 🙁 if i deregister css file and add its content to style.css – homepage is not displayed correctly.
I have by google page speed test on mobile 85, on pc 95 and wont it solve fot critical css.

Puro Support Puro Dec 23, 2015 · 3:45 pm #2855

We’ll take a look shortly and report back. Thanks for the update.

Aivaras K Dec 23, 2015 · 4:16 pm #2862

Thx, i see my mistake. I test it tomorrow – thank you very much 🙂

Puro Support Puro Dec 23, 2015 · 5:03 pm #2863

No problem. Let us know how it goes.

martellgrafico May 23, 2020 · 3:37 pm #14503

thanks for the info, i had the same problem

Andrew Misplon Puro May 24, 2020 · 10:59 am #14506

Hi Martell

Super, I’m glad to hear this topic helped.

All the best with your website.

10 posts
Closed This topic is closed to new replies. Still stuck? Start a new topic in General WordPress.