• Resolved webintenerife

    (@webintenerife)


    Hello.

    First things first, thank you so much for this amazing plugin! It’s fantastic and I’m using replacing any other plugin I used before to build my pages in Gutenberg (with some little exception for Spectra).

    But I have a problem: I need to totally avoid Google Fonts (due to GDPR) and though I have tried everything (manually uploading fonts to the server and creating font-face rules in custom CSS, installing several plugins (like Local Google Fonts, Disable and remove Google Fonts, OMGF), Google Fonts still are loaded. If I look at the page source I find the following code.

    <style id='greenshift-global-css-inline-css'>
    @import url("https://fonts.googleapis.com/css?family=Fahkwang:600&display=swap");@import url("https://fonts.googleapis.com/css?family=Fahkwang:600&display=swap");@import url("https://fonts.googleapis.com/css?family=Fahkwang:600&display=swap");body{--gs-type-one-size:clamp(2rem, 2.5vw, 3rem)}body{--gs-type-one-lineheight:clamp(2.6rem, 3vw, 3.5rem)}body{--gs-type-one-weight:600}body{--gs-type-one-family:"Fahkwang"}body{--gs-type-two-size:clamp(1.5rem, 1.7vw, 2.1rem)}body{--gs-type-two-lineheight:clamp(2rem, 2.1vw, 2.5rem)}body{--gs-type-two-weight:600}body{--gs-type-two-family:"Fahkwang"}body{--gs-type-three-size:clamp(1.3rem, 1.3vw, 1.7rem)}body{--gs-type-three-lineheight:clamp(1.7rem, 1.8vw, 2.1rem)}body{--gs-type-three-weight:600}body{--gs-type-three-family:"Fahkwang"}body{--gs-type-four-size:clamp(1.2rem, 1.1vw, 1.5rem)}body{--gs-type-four-lineheight:clamp(1.4rem, 1.5vw, 1.8rem)}body{--gs-type-five-size:clamp(1rem, 1vw, 1.3rem)}body{--gs-type-five-lineheight:clamp(1.2rem, 1.3vw, 1.5rem)}body{--gs-colorone:#67b229}body{--gs-colortwo:#4e8520}body{--gs-colorfive:#fdd51e}:root{--gs-type-one-size:36px;--gs-type-one-lineheight:44px;--gs-type-two-size:30px;--gs-type-two-lineheight:38px;--gs-type-three-size:24px;--gs-type-three-lineheight:30px;--gs-type-four-size:20px;--gs-type-four-lineheight:28px;--gs-type-five-size:15px;--gs-type-five-lineheight:24px;--gs-colorone:#2184f9;--gs-colortwo:#e90000;--gs-colorthree:#2adb32;--gs-colorfour:#696cff;--gs-colorfive:#ff9800}@font-face {font-family: "Fahkwang";src: url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_1/woff2/fahkwang-regular-webfont.woff2) format("woff2"), url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_1/woff/fahkwang-regular-webfont.woff) format("woff"), url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_1/ttf/Fahkwang-Regular.ttf) format("truetype");font-display: swap;}@font-face {font-family: "Montserrat";src: url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_2/woff2/montserrat-regular-webfont.woff2) format("woff2"), url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_2/woff/montserrat-regular-webfont.woff) format("woff"), url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_2/ttf/Montserrat-Regular.ttf) format("truetype");font-display: swap;}@font-face {font-family: "AdventPro";src: url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_3/woff2/adventpro-regular-webfont.woff2) format("woff2"), url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_3/woff/adventpro-regular-webfont.woff) format("woff"), url(https://nuevo.elgraneroverde.es/wp-content/uploads/GreenShift/fonts/font_3/ttf/AdventPro-Regular.ttf) format("truetype");font-display: swap;}
    </style>

    Exploring Greenshift source code I have found 3 javascript files whch import Google Fonts and make the website result positive to the check (https://fontsplugin.com/google-fonts-checker/).

    What’s puzzling me is that Greenshioft block have the option to use Local Fonts and in the settings I can upload the fonts I want to use, so why your javascript import Google Fonts anyway?

    Do you plan to solve this in future updates? And what do you suggest to solve the issue?

    Thank you so much for your help

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpsoul

    (@wpsoul)

    Hi. Our plugin doesn’t import any external fonts and it has no javascripts for loading fonts. It can load Google font styles (without javascript) only in one scenario – if you add google font in typography but without Local font option. More about is in tutorials

    Thread Starter webintenerife

    (@webintenerife)

    Hi wpsoul. Thank you for answering. I did a double check on my home page and everywhere I use some text I have set blocks to use Local fonts… But still in the page source I find those lines…

    Anyway, after having tried several plugins (like Local Google Fonts, Disable and remove Google Fonts, OMGF…) I have installed Replace or Remove Google Fonts and it solved my problem.

    Thank you again for your support ??

    Hi, if using local fonts, it’s still possible to select non-local fonts (Google Fonts) for each single element, right?

    So now it’s not GDPR save, because other users in a wp installation might not know, that they always need to use the checkbox for each element.

    I work with many customers with basic knowledge and I need to make sure, I can give them a website that is GDPR save.

    Can you please provide a solution, so we can disable the dropdown and loading for Google Fonts global?

    Some snippet to disable the feature would really help.

    examples: (not working, just for demo)

    add_action( ‘wp_enqueue_scripts’, function() { wp_dequeue_style( ‘greenshift-fonts’ ); } );

    add_action( ‘admin_init’, function() { add_filter( ‘greenshift_google_fonts_array’, ‘__return_empty_array’ ); } );

    thanks a lot!

    Plugin Author wpsoul

    (@wpsoul)

    your point has a sense. We will do better. If you upload local font then only local font will be available in selector, google fonts will be hidden

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Fonts imported anyway’ is closed to new replies.