• Hola, detecto en la plantilla colormag puesta en la web que carga Font Awesome y Google Fonts veo que el tema carga ambos scripts como puedo desactivar ambos scripts, gracias.
    ***************************

    175/5000
    Hello, I detect in the template colormag put on the web that loads Font Awesome and Google Fonts I see that the theme loads both scripts as I can deactivate both scripts, thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • @somosbrujas

    If you want to remove those within your site if you do not need them then, can you create a child theme and then, dequeue them as needed which handle names are respectively: colormag-fontawesome and colormag_google_fonts respectively.

    Thanks.

    Thread Starter Varonblu

    (@somosbrujas)

    Hello, I have a thema son created as I proceed to remove the identifiers colormag-fontawesomey colormag_google_fonts, some tutoring.
    *******
    what steps should I follow to do this?
    Thank you

    Thread Starter Varonblu

    (@somosbrujas)

    this is what I have in thema thema:
    * Para las fuentes de Google:
    *
    */
    add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );
    /*
    * Para iconos de fuentes impresionantes:
    *
    */
    add_action( ‘wp_enqueue_scripts’, function() { wp_dequeue_style( ‘font-awesome’ ); }, 50 );

    /*
    * Para eliminar la solicitud de http Font Awesome también:
    *
    */
    add_action( ‘elementor/frontend/after_enqueue_styles’, function () { wp_dequeue_style( ‘font-awesome’ ); } );

    /*
    * Para Eicons:
    *
    */
    add_action( ‘elementor/frontend/after_enqueue_styles’, function() { wp_dequeue_style( ‘elementor-icons’ ); } );

    @somosbrujas

    For that, if you can code on your own then, you can dequeue those styles via the child theme. And the handles are: colormag-fontawesome and colormag_google_fonts for fontawesome and Google fonts respectively. And to your reference, maybe you can follow this link: https://codex.www.ads-software.com/Function_Reference/wp_dequeue_style about how to dequeue those as needed for your site and see if it can help you out?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘disable Font Awesome scripts and Google Fonts’ is closed to new replies.