• Resolved chetanrana

    (@chetanrana)


    I am using Open sans font, which is hosted locally, I changed all typography to open san in customize menu. but still, the following font is getting called and causing render block issue. can you please help on how to disable this?

    I found this line in my page source code

    
    <link rel='stylesheet' id='wp-editor-font-css' href='https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i&ver=5.6.1&display=swap' type='text/css' media='all' />

    Google Page speed insights
    https://fonts.googleapis.com/css?family=Noto+Serif%3A400%2C400i%2C700%2C700i&ver=5.6.1&display=swap

    • This topic was modified 3 years, 9 months ago by chetanrana.
Viewing 1 replies (of 1 total)
  • Thread Starter chetanrana

    (@chetanrana)

    public function disable_google_fonts( $translations, $text, $context, $domain ) {
    		switch ( $text ) {
    			case 'on':
    				// Pass for most cases.
    				if ( $this->is_ending_with_font_toggler( $context ) || in_array( $context, $this->get_font_toggler_variants() ) ) {
    					$translations = 'off';
    				}
    				break;
    			case 'Noto Serif:400,400i,700,700i':
    				if ( 'Google Font Name and Variants' === $context ) {
    					$translations = 'off';
    				}
    				break;
    		}
    
    		return $translations;
    	}
    • This reply was modified 3 years, 9 months ago by chetanrana.
Viewing 1 replies (of 1 total)
  • The topic ‘Disable Noto Serif font in Ocean WP Theme’ is closed to new replies.