• Hi I’d like to add new fonts to my wordpress Sahifa theme and wondered if this is possible? If so, how?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, there are 2 ways – if you have the fonts and want them to be included as webfonts, you can use fontsquirrel.com, upload your fonts and include the generated files in your template css.

    Or, if you want to use Google Fonts, simply enqueue the google font in your functions.php file.

    e.g.

    //= Enqueue Google Font
    /****************************************************/
    function add_google_fonts() {
    	wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700,300', false );
    }
    add_action( 'wp_enqueue_scripts', 'add_google_fonts' );

    Thread Starter Samille

    (@samille)

    Hi Shannon thanks for the prompt response. However, I’m not that tech savvy so they don’t mean much to me. I have the fonts already, so went to fontsquirrel but it just looks like I need to get their ones – which are not the ones I want. For the second option, I have no idea what you mean by enqueuing the good font in functions.php file. Any tips would be much appreciated thank you.

    If you you are not tech savvy and what I said doesn’t mean much, then you’re probably not going to be able to do it without technical assistance.

    Font Squirrel – use their generator to generate web fonts and then follow thier instructions to use them

    Enqueue – thats the most efficient way to load google fonts – https://www.wpbeginner.com/wp-themes/how-add-google-web-fonts-wordpress-themes/

    you will need some technical knowledge to implement new fonts

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add new font’ is closed to new replies.