Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1280562

    Hallo,
    durch diesen sciptcode wird immer die Googleschrift geladen. wie kann man das verhindern? (Zeile: f.href= ‘//fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700′). Ich habe alles was mit Google zu tun hat schon deaktiviert und die Schriften im Theme und im LayerSlider lokal hochgeladen.

    <!– google webfont font replacement –>
    <script type=’text/javascript’>
    (function() {

    /* check if webfonts are disabled by user setting via cookie – or user must opt in. */
    var html = document.getElementsByTagName(‘html’)[0];
    var cookie_check = html.className.indexOf(‘av-cookies-needs-opt-in’) >= 0 || html.className.indexOf(‘av-cookies-can-opt-out’) >= 0;
    var allow_continue = true;
    var silent_accept_cookie = html.className.indexOf(‘av-cookies-user-silent-accept’) >= 0;

    if( cookie_check && ! silent_accept_cookie )
    {
    if( ! document.cookie.match(/aviaCookieConsent/) || html.className.indexOf(‘av-cookies-session-refused’) >= 0 )
    {
    allow_continue = false;
    }
    else
    {
    if( ! document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/) )
    {
    allow_continue = false;
    }
    else if( ! document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/) )
    {
    allow_continue = false;
    }
    else if( document.cookie.match(/aviaPrivacyGoogleWebfontsDisabled/) )
    {
    allow_continue = false;
    }
    }
    }

    if( allow_continue )
    {
    var f = document.createElement(‘link’);

    f.type = ‘text/css’;
    f.rel = ‘stylesheet’;
    f.href = ‘//fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700’;
    f.id = ‘avia-google-webfont’;

    document.getElementsByTagName(‘head’)[0].appendChild(f);
    }
    })();

    </script>

    #1281993

    Hey bk28832,

    Thank you for the inquiry.

    You have to set the Enfold > Privacy & Cookie > Cookie Handling > Cookie-Zustimmungs-Nachricht aktivieren settings to the second option and enable the cookie consent bar or messages in order to prevent the fonts from loading without user consent. Please check the following documentation for more info about the privacy options.

    // https://kriesi.at/documentation/enfold/privacy-cookies/

    Best regards,
    Ismael

    #1282266
    This reply has been marked as private.
    #1282831

    Hi,

    Thank you for the inquiry.

    We cannot reproduce the issue on our end when we used a locally uploaded font. Are you using a layer slider or a Google map element? These elements may still load custom fonts from Google, so you have to make sure that they do not load without user permission.

    Best regards,
    Ismael

    #1282849
    This reply has been marked as private.
    #1283080

    Hi,

    Thank you for the info.

    The demo is not using a locally hosted font, so it has to get the fonts from Google. We tried to login to the dashboard using the account above, but it seems to be invalid. Please check the login info or create another so that we could access the dashboard and check the settings.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.