This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Disable Google Fonts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #57379
    André FehrmannAndré Fehrmann
    Participant

    Hello.

    Is there a way to disable Google Fonts in the frontend? I searched all the settings and set font usage to inherit but there ist still some google fonts implementation in the HTML. Unfortunately we here in Germany have some strikt policies when it come to data from different countries.

    My export from the settings looks fine:

    {
      "boxheight": "34px",
      "boxbackground": "0-60-rgb(245, 245, 241)-rgb(245, 245, 241)",
      "boxborder": "border:0px none rgb(141, 213, 239);border-radius:0px 0px 0px 0px;",
      "boxshadow": "box-shadow:0px 0px 0px 0px #000000 ;",
      "boxmargin": "0px",
      "inputbackground": "0-60-rgba(0, 0, 0, 0)-rgba(0, 0, 0, 0)",
      "inputborder": "border:0px solid rgb(104, 174, 199);border-radius:0px 0px 0px 0px;",
      "inputshadow": "box-shadow:0px 0px 0px 0px rgb(181, 181, 181) inset;",
      "inputfont": "font-weight:normal;font-family:inherit;color:rgb(0, 0, 0);font-size:1em;line-height:1.2em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "settingsimagepos": "right",
      "settingsimage": "ajax-search-pro/img/svg/control-panel/cp4.svg",
      "settingsimage_color": "rgb(255, 255, 255)",
      "settings_overflow_autohide": "0",
      "settings_overflow_color": "0-60-rgba(0, 0, 0, 0.5)-rgba(0, 0, 0, 0.5)",
      "settingsbackground": "1-185-rgb(182, 182, 182)-rgb(182, 182, 182)",
      "settingsbackgroundborder": "border:0px solid rgb(104, 174, 199);border-radius:0px 0px 0px 0px;",
      "settingsboxshadow": "box-shadow:0px 0px 0px 0px rgba(255, 255, 255, 0.63) ;",
      "settingsdropbackground": "1-185-rgb(182, 182, 182)-rgb(182, 182, 182)",
      "settingsdropboxshadow": "box-shadow:0px 0px 0px 0px rgb(0, 0, 0) ;",
      "settingsdropfont": "font-weight:bold;font-family:inherit;color:rgb(255, 255, 255);font-size:1em;line-height:1.35em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "exsearchincategoriestextfont": "font-weight:normal;font-family:inherit;color:rgb(31, 31, 31);font-size:1em;line-height:1.35em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "settingsdroptickcolor": "rgb(255, 255, 255)",
      "settingsdroptickbggradient": "1-180-rgb(34, 34, 34)-rgb(69, 72, 77)",
      "magnifier_position": "right",
      "magnifierimage": "ajax-search-pro/img/svg/magnifiers/magn6.svg",
      "magnifierimage_color": "rgb(255, 255, 255)",
      "magnifierbackground": "1-180-rgb(125, 111, 4)-rgb(125, 111, 4)",
      "magnifierbackgroundborder": "border:0px solid rgb(0, 0, 0);border-radius:0px 0px 0px 0px;",
      "magnifierboxshadow": "box-shadow:0px 0px 0px 0px rgba(255, 255, 255, 0.61) ;",
      "show_close_icon": "1",
      "close_icon_action": "clear",
      "close_icon_close_results": "1",
      "close_icon_background": "rgb(51, 51, 51)",
      "close_icon_fill": "rgb(254, 254, 254)",
      "close_icon_outline": "rgba(255, 255, 255, 0.9)",
      "loader_display_location": "auto",
      "loader_image": "ball-scale-ripple",
      "loadingimage_color": "rgb(255, 255, 255)",
      "display_search_text": "1",
      "hide_magnifier": "0",
      "search_text_position": "right",
      "search_text_font": "font-weight:normal;font-family:inherit;color:rgb(255, 255, 255);font-size:1.5em;line-height:2em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "kw_suggest_font": "font-weight:normal;font-family:inherit;color:rgba(74, 74, 74, 1);font-size:1rem;line-height:1.2rem;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "kw_suggest_kw_font_color": "rgba(20, 84, 169, 1)",
      "kw_suggest_didyoumean_font_color": "rgba(234, 67, 53, 1)",
      "kw_suggest_bg": "rgb(255, 255, 255)",
      "kw_suggest_border": "border:0px solid rgb(0, 0, 0);border-radius:0px 0px 0px 0px;",
      "kw_suggest_box_shadow": "box-shadow:0px 5px 5px -5px #dfdfdf;",
      "kw_suggest_padding": "6px 12px 6px 12px",
      "kw_suggest_margin": "0 0 0 0",
      "i_ifnoimage": "description",
      "i_res_item_background": "rgb(245, 245, 241)",
      "i_item_width": "200px",
      "i_item_width_tablet": "200px",
      "i_item_width_phone": "200px",
      "i_item_height": "200px",
      "i_item_height_tablet": "200px",
      "i_item_height_phone": "200px",
      "i_item_margin": "2",
      "i_res_item_content_background": "rgb(245, 245, 241)",
      "i_res_magnifierimage": "ajax-search-pro/img/svg/magnifiers/magn6.svg",
      "i_overlay": "1",
      "i_overlay_blur": "1",
      "i_hide_content": "1",
      "i_animation": "bounceIn",
      "i_res_container_bg": "rgba(6, 58, 37, 0.6)",
      "i_pagination": "0",
      "i_rows": "2",
      "i_pagination_position": "top",
      "i_pagination_background": "rgb(228, 228, 228)",
      "i_pagination_arrow": "/ajax-search-pro/img/svg/arrows/arrow1.svg",
      "i_pagination_arrow_background": "rgb(76, 76, 76)",
      "i_pagination_arrow_color": "rgb(255, 255, 255)",
      "i_pagination_page_background": "rgb(244, 244, 244)",
      "i_pagination_font_color": "rgb(126, 126, 126)",
      "titlefont": "font-weight:bold;font-family:inherit;color:rgb(0, 0, 0);font-size:1.35em;line-height:1.2em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "authorfont": "font-weight:bold;font-family:inherit;color:rgb(161, 161, 161);font-size:1em;line-height:1.2em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "datefont": "font-weight:normal;font-family:inherit;color:rgb(173, 173, 173);font-size:1em;line-height:1.2em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "descfont": "font-weight:normal;font-family:inherit;color:rgb(74, 74, 74);font-size:0.35em;line-height:1.35em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "exsearchincategoriesboxcolor": "rgb(246, 246, 246)",
      "groupingbordercolor": "rgb(248, 248, 248)",
      "groupbytextfont": "font-weight:bold;font-family:inherit;color:rgb(5, 94, 148);font-size:1em;line-height:1.2em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "showmorefont_bg": "rgb(255, 255, 255)",
      "showmorefont": "font-weight:normal;font-family:inherit;color:rgb(5, 94, 148);font-size:1em;line-height:1.35em;text-shadow:0px 0px 0px rgba(255, 255, 255, 0);",
      "res_z_index": "11000",
      "sett_z_index": "11001",
      "media_query_mobile_max_width": "640",
      "media_query_tablet_max_width": "1024",
      "resultstype": "isotopic",
      "resultsposition": "hover",
      "results_snap_to": "left",
      "results_margin": "12px 0 0 0",
      "results_top_box": "0",
      "showauthor": "0",
      "author_field": "display_name",
      "showdate": "0",
      "custom_date": "0",
      "custom_date_format": "Y-m-d H:i:s",
      "post_type_res_title_length": "999",
      "showdescription": "0",
      "tax_res_title_length": "999",
      "tax_res_showdescription": "0",
      "tax_res_descriptionlength": "130",
      "user_res_title_length": "999",
      "user_res_showdescription": "0",
      "user_res_descriptionlength": "130",
      "result_suggestions": "1",
      "result_suggestions_results_page": "0",
      "keywordsuggestions": "1",
      "keyword_suggestion_source": "statistics|xtax_employee_subject|xtax_employee_department|xtax_employee_grade|titles|tags|xtax_category",
      "kws_google_places_api": "",
      "keyword_suggestion_count": "10",
      "keyword_suggestion_length": "60"
    }

    but I still have some references to Google Fonts:

    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <style>
    @font-face {
      font-family: 'Lato';
      font-style: normal;
      font-weight: 300;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh7USSwiPHA.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Lato';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/lato/v25/S6uyw4BMUTPHjx4wWw.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Lato';
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh6UVSwiPHA.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 300;
      font-stretch: normal;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsiH0B4gaVc.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 400;
      font-stretch: normal;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVc.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Open Sans';
      font-style: normal;
      font-weight: 700;
      font-stretch: normal;
      font-display: swap;
      src: url(https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1x4gaVc.ttf) format('truetype');
    }
    
    </style>

    Cheers, André

    #57381
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi André,

    You can completely disable that via this option. Make sure to clear all layers of cache including page, asset, CDN, cloudflare etc.. so the change propagates.

    #57387
    André FehrmannAndré Fehrmann
    Participant

    Thank you Ernest.

    That was exactly the point I needed. I’m a little surprised I didn’t find it myself. Thank you so much!

    Cheers, André

    #57388
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are very welcome!

    No worries, that option is burried a bit, it’s not the best location for it and is rarely used.

    If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.

    If you like the plugin and have not rated already, feel free to leave a rating on the wordpress plugin repository, it’s greatly appreciated.

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