Remove inter font


How should I remove Inter font?, I just remove this line in class-gust.php
//wp_enqueue_style( ‘gust-inter’, ‘;400;500;700&display=swap’, array(), $this->version );

but I guess it’s not the best way to do it.
I have installed theme as docs suggest, but I don’t know if I have to do a child of it to avoid future upgrade problems and be able to modify funtions.php.


Hi Lucas

The best way to do this would be through using a child theme. There is a section in the docs that describes how to add a custom font and you can do a similar thing to remove Inter. For example, if you want to replace Inter with Open Sans:

add_action('wp_enqueue_scripts', 'my_custom_fonts');
function my_custom_fonts()
  // remove inter

  // register open sans
  wp_enqueue_style('open-sans', '');

And then in the tailwind config, replace Inter with the new Open Sans:

  "theme": {
    "extend": {
      "fontFamily": {
        "sans": ["Open Sans", "sans-serif"]

Hope that makes sense!

Thanks Matt, I will do a child theme to modify class-gust.php.