Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1359783

    I have to use my own fonts due to the DSGVO and have uploaded them according to the instructions. Unfortunately, “@import url(https://fonts.googleapis.com/css?family=:400,700);” still appears in the source code. How can I remove this or prevent the connection to Google?

    #1359786

    Just seen this post.

    I have assumed you have uploaded your custom font into Enfold via the import section in the Enfold Control Panel. I have also assumed that you have then changed the font settings under General settings to match your newly uploaded fonts which will appear at the bottom of the dropdown lists.

    Have you checked the font and typography settings under general styling in the Enfold Control Panel?

    Have you also checked the advanced styling settings in the Enfold Control Panel to check that you have not specified font overrides?

    If you are using a critical css generator or a css optimisation plugin like WP-Rocket you will need to clear the cache and regenerate your critical css files. @import is normally used in a stylesheet somewhere. You may still have a reference to the font somewhere in your settings. If you are using WP-Rocket you will also need to check the font preload settings and check you are not preloading a font you are no longer using.

    Otherwise you may be using a plugin that uses Google fonts by default. You will need to check what css file the @import is in. Most plugins have the option to set the font based on the theme rather than specifying a font from Google.

    I hope this helps.

    #1359820

    Thank you! You really helped me a lot with your suggestions for solutions. It was really one of the plugins in whose php-file this import was initiated. I commented it out and it works now. THANK YOU very much!

    #1359867

    Hi,
    Glad thinkjarvis could help, thank you thinkjarvis, and you found which plugin was causing this, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google-Font-import is still on source code. How to fix that?’ is closed to new replies.