Okay
  Public Ticket #3109920
Disable Google Fonts
Closed

Comments

  •  2
    markusspiske started the conversation

    Hi,

    where I can deacitvate the Google Fonts via your recommende code snippet

    add_filter( ‘aurum_primary_font_include’, ‘__return_false’ );
    add_filter( ‘aurum_heading_font_include’, ‘__return_false’ );

    At the functions.php it doesn’t work?
    In which file must it be defined?

    I would deactivate these two scripts, so that no more requests are sent to the Google server, cause I only custom hosted fonts.

    Thanks

  •  1,558
    Laborator replied

    Hi there,

    It should be added under functions.php file, if it does not work we can check what the issue could be.

    Can you please share your site credentials here, because we need to login to your site and see this issue live. Your information is safe (private) in this thread.

    To include your credentials click Insert Credentials button in the editor toolbar. (See how)


    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   markusspiske replied privately
  • [deleted] replied

    Hi Markus,

    I have investigated this and found that the Google font that is being loaded in your document is from LayerSlider:

    medium
    (view large image)

    You must edit LayerSlider (homepage slider) and remove the font from it.

    Also, the two code snippets of our theme are working properly but there is no Google font being called from the theme:

    // Force Deactivate Theme Fonts
    add_filter( 'aurum_primary_font_include', '__return_false' );
    add_filter( 'aurum_heading_font_include', '__return_false' );

    However, another font that was loaded from Google was this one "tp-material-icons" so I have disabled it as well:

    medium
    (view large image)


    I hope this helps you.

  •   markusspiske replied privately