Okay
  Public Ticket #505861
Removing OpenSans
Closed

Comments

  • Nathan started the conversation

    Hi!

    I'm loading fonts manually now, including OpenSans. I was wondering how I might stop the Salient theme from calling OpenSans through @font-face in the Salient style.css. Otherwise I'm loading the OpenSans font twice, one from the Salient theme and once from the child theme.

    I know the simple solution is to strip it from the parent theme directly, but I'd prefer to do this through the child theme if possible. Is there a way of doing this?

    Thanks!

    Nathan


  •  8,992
    Tahir replied

    Hey ,

    You can dequeue the style.css from parent and load it from the child theme instead.

    Thanks


    ThemeNectar Support Team 

  • Nathan replied

    Thanks Tahir!

  • [deleted] replied

    Sorry to reopen this but I\'m also trying to get rid of any instance of Open Sans.

    How exactly do you \"dequeue the style.css from parent and load it from the child theme instead\"? I\'m using a child theme and a child CSS, so this is exactly the solution I need.

    Thanks.


  • Nathan replied

    Hey David, I asked an independent developer and he couldn\'t figure it out.

    Unfortunately I am just manually commenting out the @font-face styles in the Salient style.css, which you have to do every time you upgrade. It would be nice to find a way to do this using a function in functions.php

  • [deleted] replied

    Hi Nathan, thanks for your advice!

    As you can imagine, I\'m trying to avoid the situation you describe but maybe now that I\'ve flagged this issue again, the ThemeNectar crew can enlighten us... ;)