[Resolved] font awesome style

This topic contains 7 replies, has 2 voices, and was last updated by  Puro Support 1 year, 11 months ago.

  • Author
    Posts
  • #2776

    Aivaras K
    Participant

    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 🙂

    #2813

    Puro Support
    Keymaster

    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?

    #2852

    Aivaras K
    Participant

    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.

    #2855

    Puro Support
    Keymaster

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

    #2858

    Puro Support
    Keymaster

    Thanks for the wait. Please, see our example child theme for the task you’re looking to complete:

    http://purothemes.com/wp-content/uploads/2015/12/ultra-child-font-awesome-custom-combine.zip

    Hopefully you’ll find that helpful.

    #2859

    Puro Support
    Keymaster

    You might also be interested in the work that was done in this child theme:

    http://purothemes.com/wp-content/uploads/2015/12/ultra-child-willy-021.zip

    Check it out locally and see what you think, you don’t need to use all of it. It’s a slimmed down icon library containing only the icons Ultra uses at the moment.

    #2862

    Aivaras K
    Participant

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

    #2863

    Puro Support
    Keymaster

    No problem. Let us know how it goes.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Scroll to top