Remove google web fonts from XStore theme to comply with GDPR regulation

This topic has 8 replies, 2 voices, and was last updated 1 years, 10 months ago ago by Rose Tyler

  • Avatar: austin55
    austin55
    Participant
    January 3, 2023 at 15:01

    Hi,

    I was reading through the below article as I will like to deactivate Google web fonts from XStore theme.

    https://www.8theme.com/topic/remove-dequeue-fonts-googleapis-com-from-header-and-instead-loading-fonts-directly-from-the-site/

    The reason for this is that EU and Germany where I am based forbid the use of Google web fonts as per GDPR regulations. My question is where can I locate the “child functions.php” and add the below code

    add_filter( ‘elementor/frontend/print_google_fonts’, ‘__return_false’ );

    Kind regards,
    Austin

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 3, 2023 at 15:57

    Hello,

    You can added the code into xstore-child/functions.php via FTP, or install any Snippet plugin and add your code in one of the snippets
    Example plugin: https://wordpress.org/plugins/code-snippets/

    Regards

    Avatar: austin55
    austin55
    Participant
    January 3, 2023 at 21:54

    No luck, it doesn’t work. can I send my admin details for you to check. I have installed Code Snippet and added code but it is not blocking google fonts.

    Kind regards,
    Austin

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 4, 2023 at 09:06

    Hello,

    Yes, please provide temporary wp-admin and FTP access, so we can take a closer look at the situation on your site.
    Also, provide screenshots of where exactly you added the code and where exactly you see/test the fonts.
    wp-admin access: Create an account via Dashboard (Users > Add new) with administrator role http://prntscr.com/s3rc9m > provide us with username and password via the Private Content area http://prntscr.com/s5mao7 You can use any email for it.
    ftp access: If you do not know how to create FTP contact with your hosting provider, they will help you.

    Regards

    Avatar: austin55
    austin55
    Participant
    January 4, 2023 at 12:21

    Thanks for coming back to me. Info is in the private area as per your request

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 4, 2023 at 16:53

    Hello,

    It is good for us that you shared the resuts of your work and it’s really good that you found the correct plugin for that and add your code in the correct places.
    About checking google fonts on your web-site we can tell you that they were added lately on it and could be cached because if to check it right now then there are only one google font on your web-site -> https://prnt.sc/PZtL7iG10aLJ which comes from one of your plugins -> Ultimate GDPR & CCPA but you should check it.

    Regards

    Avatar: austin55
    austin55
    Participant
    January 4, 2023 at 17:11

    Hi Rose,

    As always many thanks.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 5, 2023 at 08:13

    Hello,

    You’re welcome!
    “About checking google fonts on your web-site we can tell you that they were added lately on it and could be cached because if to check it right now then there are only one google font on your web-site -> https://prnt.sc/PZtL7iG10aLJ which comes from one of your plugins -> Ultimate GDPR & CCPA but you should check it.”
    Have you cleared all cache? Try another tester also.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.