How to override class of theme in child theme aka get google latin ext fonts

Hi, I have bougth a premium theme at ThemeForest but nobody has answered to my question - they are using Google fonts in the theme, but unfortunately, without latin extended characters and I have no clue how to override them (simply putting it into style.css as import didn't work):

Fonts are loaded with following class (whole file), how do I change it to add latin extended class and how to put it into my child file?

Thanks a lot!

  • Jude
    • DEV MAN

    Howdy @Karolina

    I dont see any hooks or filters in the class you shared so you cannot over ride without editing the parent class

    If you simply want to extend then you can try something like this

    wp_register_style('latin', get_template_directory_uri() . '/css/latin-fonts.css');

    Here in the CSS file add all the additional fonts you want.

    Hope that helps


  • Karolina
    • The Bug Hunter

    Hmh, really stupid made premium theme (it's really fucking bad written, no "if function exists" or so statements...)

    Whatever, If I want to load one of google fonts, I simply cant, because they are already imported and somehow they are not reimported again (and they are using all of them).


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.