• Resolved muchfun

    (@muchfun)


    Hi, Anders,
    I created a child theme for your Hamilton theme, and I would like to disable the google fonts (for data security reasons, DSGVO/GDPR).
    I found the section where you load the fonts with wp_enqueue_style but I do not find the correct syntax for dequeue for my child theme … ??
    Maybe you could provide the correct code here and/or in your FAQs ?

    Thanks in advance, Michael

    • This topic was modified 5 years, 10 months ago by muchfun.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @muchfun,

    You can remove the stylesheet enqueue in the parent theme by adding the following code to your child theme:

    remove_action( 'wp_enqueue_scripts', 'hamilton_load_style' );

    That should prevent the Google Fonts from being loaded.

    – Anders

    Thread Starter muchfun

    (@muchfun)

    Thank you very much, Anders ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to disable google fonts (because of GDPR)’ is closed to new replies.