• Hello,

    How can I remove the request for fontawesome? I don’t think is necessary for 4 buttons that are linked to our social networks profiles. And if we remove it, how can we replace those buttons? Or can we use same theme font for social media buttons?

    Our site is https://www.iphone365.ro

    Thank you,
    Costin

Viewing 1 replies (of 1 total)
  • Hi costingheonea.
    1. You can stop the loading of the font-awesome css by copying the following function to your child theme functions.php file and removing the last line. However, this will also remove all the icons used by the theme for collapsed menus and sidebars, back-to-top, and maybe others in responsive mode:

    function alx_styles() {
    	wp_enqueue_style( 'style', get_stylesheet_uri() );
    	if ( ot_get_option('responsive') != 'off' ) { wp_enqueue_style( 'responsive', get_template_directory_uri().'/responsive.css' ); }
    	if ( ot_get_option('custom') == 'on' ) { wp_enqueue_style( 'custom', get_template_directory_uri().'/custom.css' ); }
    	wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/fonts/font-awesome.min.css' );
    }

    If you want to load the font-awesome css, but not show the social link icons, you could hide them using the “display: none” css property.
    2. The social links are generated using Theme Options > Social Links. If you remove the font-awesome css you would need to somehow generate a replacement image outside of the theme options and apply that to the correct social link.
    3. I’m not aware of any icons embedded in the default theme fonts.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove fontawesome request’ is closed to new replies.