• Resolved gwdlarry

    (@gwdlarry)


    Hi there,

    In order for Hustle to be more GDPR-compliant, is there any possibility of using local fonts in Hustle, instead of loading them from fonts.bunny.net?

    Thanks.

    Best,
    Larry

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @gwdlarry

    I hope you’re well today and thank you for your question!

    We have switched to bunny.net fonts quite some time ago for that sole reason that they claim to be GDPR compliant.

    However, you can do following change:

    – in your popups/slide-ins/embeds go to the “Appearance” settings
    – switch “Typography” from “Default” to “Custom”
    – and then select “Custom user font” option from the dropdown list
    – and make sure that in “Custom Font Family” input below it you either got word “inherit” (which will make it use main font of the theme) or a name of font family defined (again – this must already be loaded on page).

    – then click “Apply” button and “Update”.

    If you do that for all the active modules (popups, slide-ins etc) and clear all cache on site/server, plugin should no longer load those Bunny Fonts and use font already available on the site – that’s up to your theme/custom settings of the site where these fonts are coming from.

    Best regards,
    Adam

    Thread Starter gwdlarry

    (@gwdlarry)

    Thanks for your reply.

    However, we did the steps you mention, but this doesn’t seem to solve the problem. (BTW, we have Hustle 7.8.1 on WP 6.3.1 and PHP 8.1.23)

    We still see the call to fonts.bunny.net in the HTML source (after browser hard reload):
    <link rel=’stylesheet’ id=’hustle-fonts-css’ href=’https://fonts.bunny.net/css?family=Lato%3Aregular%2C700&display=swap‘ type=’text/css’ media=’all’ />

    So I will disable the id=’hustle-fonts-css’ per functions.php. That should definitely work.

    Best,
    Larry

    Thread Starter gwdlarry

    (@gwdlarry)

    So trying to dequeue per functions.php did not work either.

    function gwd_hustle_fonts_entfernen() {
    wp_dequeue_style( ‘hustle-fonts’ );
    wp_deregister_style( ‘hustle-fonts’ );
    }
    add_action(‘wp_enqueue_scripts’, ‘gwd_hustle_fonts_entfernen’, PHP_INT_MAX);

    Please advise.

    Thanks.

    Best,
    LArry

    Hi @gwdlarry,

    Hope this message finds you well and thanks for the update.

    Our Devs provides this mu-plugin:

    <?php
    
    add_action( 'wp_footer', function() {
    	if ( wp_style_is( 'hustle-fonts' ) ) {
    		wp_dequeue_style( 'hustle-fonts' );
    	}
    }, 11);

    If you will use it on your functions.php, kindly remove the first line, if it does not work, kindly try installing it as a mu-plugin following the instructions from here.

    Let us know the results.

    Kind regards,
    Laura

    Thread Starter gwdlarry

    (@gwdlarry)

    Hi there,

    Your last code snippet did the trick.

    Thank you.

    Best,
    Larry

    • This reply was modified 1 year, 6 months ago by gwdlarry.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Local Fonts f. GDPR’ is closed to new replies.