Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #397604

    Thai
    Moderator

    Glad it worked 🙂

    If you need anything else, please let us know @bart971.

    #705703

    mktgldlc
    Participant

    Hello there,

    I tried to use the following solution from @jbellsey on my own child theme functions.php file:

    function remove_site_styles () {
        wp_dequeue_style( 'x-font-custom' );     // this line may not be necessary for all child themes
        wp_dequeue_style( 'x-font-standard' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_site_styles', 11 );

    But it doesn’t seem to work. I don’t really understand why the Google Fonts are always enabled and we can’t choose to just set our own font. Any help here would be much appreciated. Thanks !

    #705900

    Zeshan
    Member

    Hi there,

    You can try this code instead:

    function remove_site_styles () {
        wp_dequeue_style( 'x-google-fonts' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_site_styles', 11 );
    

    Thank you!