• lisia

    (@lisia)


    Hello! I want to remove Google-Fonts in the function.php of my child-theme from Alara. Is it enough to insert the following code?

    /* Google-Fonts unterbinden */

    add_action('wp_print_styles', 'alara_dequeue_styles', 100); function alara_dequeue_styles() { wp_dequeue_style( 'alara-fonts' );}

    Best regards, lisia

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author uxl

    (@uxl)

    Hi lisia,

    Change the wp_print_styles action to wp_enqueue_scripts and your code should work.

    For example:

    add_action( 'wp_enqueue_scripts', 'alara_dequeue_styles', 100 );
    function alara_dequeue_styles() {
      wp_dequeue_style( 'alara-fonts' );
    }
    Thread Starter lisia

    (@lisia)

    Thanks a lot, it is working fine, the fonts are loaded from my server.

    Best regards, lisia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Google Fonts’ is closed to new replies.