redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Load Google Fonts In Dashboard

Open mstoic opened this issue 11 years ago • 8 comments

When using Google fonts via Typograhy field, Redux automatically loads the Google Fonts CSS on the front-end. I want the same thing in WP Dashboard. Is it possible?

mstoic avatar May 16 '15 17:05 mstoic

In your global arguments array, edit (or modify if it exists) the output_location argument to this:

'output_location'           => array( 'frontend', 'admin' )

kprovance avatar May 16 '15 19:05 kprovance

That code was user contributed by @JonasDoebertin. Jonas, could you look into this please?

kprovance avatar May 17 '15 12:05 kprovance

It worked great. Now the issue I am facing is, the fonts don't work in the post editor. They just work out of the post editor area. I want to mimic the look of the front-end in the post editor. Any help is much appreciated. Thanks

mstoic avatar May 17 '15 13:05 mstoic

The post editor is an frame, that's why.

dovy avatar May 17 '15 14:05 dovy

The post editor is an frame, that's why.

dovy avatar May 17 '15 14:05 dovy

Then any idea on how can we can accomplish it.

mstoic avatar May 17 '15 14:05 mstoic

Nope. If you find a solution the community would love it. ;)

dovy avatar May 17 '15 15:05 dovy

You should probably have a look at add_editor_style. This allows loading styles for the TinyMCE Editor.

Unfortunately, I don't have the time to fiddle something out that works with Redux, right now.

JonasDoebertin avatar May 17 '15 21:05 JonasDoebertin