Need to change googlewebfonts

I'm looking to use different fonts than what is included with SimpleMarket theme which uses two google fonts Droid and Nunito.

It is not calling the google fonts from the header.php file, please advise which file to edit to change the fonts -- thanks

  • Tammie

    Fonts should never be called in header.php they should be enqueued in a functions file. In functions.php you need to change this:

    // Set up the other bits of the scripts - includes modernizr custom build for respond.js and also html5 shim along with some over fall back scripts.
    // Also loads the google fonts we use which are Droid Sans and Nunito
    if ( ! function_exists( 'simplemarket_load_scripts' ) ) :
    function simplemarket_load_scripts() {
    	if ( !is_admin() ) {
    		wp_enqueue_script('modernizr', get_template_directory_uri() . '/scripts/modernizr.js', array("jquery"), '2.0');
    		wp_enqueue_style('simplemarket_droidsans', '');
    		wp_enqueue_style('simplemarket_nunito', '');
    		if ( is_singular() && get_option( 'thread_comments' ) && comments_open() )
    			wp_enqueue_script( 'comment-reply' );

    Ideally you would create a child theme then you'd put this function in your child theme and change there - this would help you with updates in future.

    I will caution on changing the fonts you may need to change padding, font sizes and other styles.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.