Site logo

Archived topic

Feature Request: Add IBM Plex Mono font to typography options

13 replies · Started by Jordan on May 31, 2018

Viewing posts 1–14 of 14

Would be great if I could select the IBM Plex Mono font from the dropdown menu.

If it's a quickie to do...

Cheers!

Very cool.

It does not say where to paste the code, though?

Cheers!

Ah, so it is quite technical!

I think the feature request remains for me then — to have a point and click access to all the fonts without installing more plugins or using child themes etc.

Dreamer!

Back to reality —

I have installed the Code Snippets plugin (hate adding more plugins but still..)

My next question is, does the code snippet need to run "everywhere," "only in admin," "front end" or "only once"?

Thanks for the help!

Front end will be fine. Or you can run everywhere.

Hmm, OK I now have a bunch more fonts to choose from, but looks like IBM fonts are not included in the full list.

Argh!

Thanks David.

I haven't the energy to be honest.

Maybe some other time!

Appreciate your help, especially the rapid responses (impressive support — big thumbs up.)

Cheers o/

Hi Jordan, sorry to cause a bit of a run around. When you have the energy let us know. Have a good day.

OK, got this done finally.

Installed Code Snippets.

Here's the code I used:

add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
function tu_add_google_fonts( $fonts ) {
	$fonts[ 'ibm_plex_mono' ] = array( 
		'name' => 'IBM Plex Mono',
		'variants' => array( '400', '400i', '700', '700i' ),
		'category' => 'monospace'
	);
	
	return $fonts;
}

(I ticked the box, "Only run in administration area" and that worked fine.)

After this, I could finally select the IBM Plex Mono font.

Cheers!

Glad to hear you got this resolved!

This archived topic is closed to new replies.