• ResolvedModerator David Perez

    (@davidperez)


    Hello,

    The plugin is loading Nunito fonts even if you ask not to do it.

    gdpr-cookie-compliance/dist/fonts/nunito-v8-latin-regular.woff2
    gdpr-cookie-compliance/dist/fonts/nunito-v8-latin-700.woff2

    Due to performance reasons and is giving a gap of 2s , I’d like to not loading these fonts. I didn’t see any filter or setting to not load it.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Jane

    (@janeaustin)

    Hi @davidperez

    Thanks for using our plugins.

    Did you try to switch to your local font files?

    https://ps.w.org/gdpr-cookie-compliance/assets/screenshot-5.png?rev=3361545
    (See the option ‘Choose font: Inherit from your WordPress theme’0

    Hope this helps.

    Moderator David Perez

    (@davidperez)

    Hello,

    It does not work. That’s why I added this ticket. Even if you select the option default, it loads at frontend the font Nunito. Could you review with your team?

    Plugin Support Jane

    (@janeaustin)

    Hi @davidperez

    We will check and get back to you.

    Hope this helps.

    Moderator David Perez

    (@davidperez)

    Ok! thanks

    Plugin Support Jane

    (@janeaustin)

    Hi @davidperez

    The Nunito font is only loaded when the “Default” font option is selected. If the setting is changed to “Inherit,” Nunito will not be loaded.

    For peace of mind, you can further prevent Nunito from loading by using the following hook. This can be added to your theme’s functions.php file:

    add_filter( 'gdpr_cc_load_nunito', '__return_false' );

    That said, this hook isn’t strictly necessary, since the plugin already avoids loading Nunito unless the “Default” option is in use.

    Also, please clear cache whenever you change this setting or use private browsing for testing. If a CSS optimization plugin (such as WP Rocket, NitroPack, or Autoptimize) is enabled, it may combine and cache CSS files, which can prevent the change from taking effect until the cache is purged.

    Hope this helps.

    Moderator David Perez

    (@davidperez)

    Hello,

    I’ll check it again and I’ll reply you accordingly.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.