Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

How can i disable google fonts


Hello, in my country are not allowed, how can i disable all google fonts on my metronic theme (Latest Version, laravel)?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (9)


Thank you riterix happy



Ohh Hi Faizal,

You are welcome, any time man.

Thank you ;)



Hi Justus,

You can customize and update the includeFonts function from this class file app/Core/Adapters/Theme.php based on your requirement.

The default Metronic font is Inter. Maybe you could replace it with this font.

https://rsms.me/inter/

Thanks



How can i See If text ist used in the Programm is a Google Font or not? So the Default metonic Fonts dont used Google Fonts?



Hi Justus,

You can rely on this Post, I used the first option, to disabled google fonts, since it is for Laravel it will fits you well,

I followed it and made my project google fonts off, I customize the post for my Django project, and now I host them locally, even performance are great.

This method is also great for people who may deploy their project for the European market to avoid the GDPR laws.

Hope it helps.



here's the post :

https://european-alternatives.eu/blog/removing-google-fonts-and-self-host-it-locally-in-laravel-projects



Hi Justus Roki,

You can remove below code from this file.

themes/metronic/laravel/resources/views/base/base.blade.php


{{ theme()->includeFonts() }}


Thanks



how do i know if i use google fonts or not? If need a alternative when i remove then?



There active but i dont if use them
https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2
https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2
https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2
https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLDz8Z1xlFd2JQEk.woff2
--------------------------
https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(