• Hey everyone,

    I’ve bought a theme and apparently, it only lets me use the fonts that come along with it. The list has plenty of fonts but none of them support the Hebrew language (my site’s language).
    Even when I set the desired font of choice with CSS, it won’t change anything, even when I use the “!important” tag.
    The theme’s support forum say that right now they don’t support fonts other than the ones listed, which is pretty lame as now any visitor sees different fonts, depends on their browser’s default.

    Any way to bypass that and force my own fonts even though they block me?

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • David_G

    (@questas_admin)

    Are there any Google fonts that will work for what you want? There is an easy way to add google fonts.

    Thread Starter Kettercat

    (@kettercat)

    Yeah, a Google font is exactly what I’m trying to use. How do I do that? 🙂

    David_G

    (@questas_admin)

    I did find this link with a downloadable font, but I don’t know how to add it to WP. http://alef.hagilda.com/

    Thread Starter Kettercat

    (@kettercat)

    Hi again,
    Exactly what I’m trying to use. I’ve used it before with CSS, in this case the theme blocks it 🙁

    David_G

    (@questas_admin)

    Add this to your functions.php, I strongly suggest using a CHILD THEME for this. Place your fontname where it says YourFontHere.

    // Add Google Font
    add_action( 'wp_enqueue_scripts', 'my_google_font' );
    function my_google_font() {
        wp_enqueue_style( $handle = 'my-google-font', $src = 'http://fonts.googleapis.com/css?family=YourFontHere', $deps = array(), $ver = null, $media = null );
    }
    David_G

    (@questas_admin)

    If you wish to add more fonts do it like this:
    font1|font2|font3

    David_G

    (@questas_admin)

    The best way to make changes like this to a theme is to use a child theme, so your tweaks won’t be overwritten when updating the theme. Here are some guides in case you haven’t made one before:

    https://codex.wordpress.org/Child_Themes
    http://op111.net/53/

    David_G

    (@questas_admin)

    Once you have your font setup then use the “style.css” file to use it where you want. You can also use the font in your text editor, but you will have to manually edit that in.

    Thread Starter Kettercat

    (@kettercat)

    Hey again!

    Thanks for all your help 🙂 I ended up using a great Google fonts plugin and apparently it overrides all the theme’s settings.
    Did the trick for now 🙂

    Thanks again!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Force custom fonts?’ is closed to new replies.