Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • B_Anders
    Participant

    Hi,

    is there a possibility to load fontawesome locally or any other workaround so that the fonts/icons doesn’t influence my page speed?

    Thank you

    B_Anders
    Participant

    I think I managed to load it locally by disabling sb_icon_css and loading through functions.php

    Is this the right way to load locally? I found various versions..

    add_action( 'wp_enqueue_scripts', 'custom_load_font_awesome' );
    /**
     * Enqueue Font Awesome.
     */
    function custom_load_font_awesome() {
    
        wp_enqueue_style( 'font-awesome-free', 'https://formybrand.com/fonts/fontawesome/css/all.min.css' );
    
    }

    Thank you for your time

    Hi,

    Yeah you can use this above code.
    Once used, in WP Socializer –> settings –> Disable “font awesome” script being loaded in your site.

    The above code will add it for you and WP Socialzier will stop loading.

    Please let me know if it works.

    Thanks,
    Aakash

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter