Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1373828
    Ben_Fontaine
    Participant

    Hi, i would like to add more font weight to the google font “Oswald”.
    In the customizer, i only have 3 font weight, whereas on the google font website, there are 6.
    How do i add them so they are in the customizer?

    #1374141
    Jade
    Moderator

    Hi there,

    Please add this in the functions.php file of your child theme:

    /**
     * Enqueue scripts and styles.
     */
    
    add_action( 'wp_enqueue_scripts', 'load_scripts' ); 
     
    function load_scripts() {	
    	wp_enqueue_style( 'fns-google-font', 'https://fonts.googleapis.com/css?family=Oswald:200,300,400,500,600,700' );
    }

    Then you can use CSS in the customizer to set the font weight of an element. Example:

    h1 {
        font-weight: 200;
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1373828 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>