Load Google Fonts In Dashboard
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?
In your global arguments array, edit (or modify if it exists) the output_location argument to this:
'output_location' => array( 'frontend', 'admin' )
That code was user contributed by @JonasDoebertin. Jonas, could you look into this please?
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
The post editor is an frame, that's why.
The post editor is an frame, that's why.
Then any idea on how can we can accomplish it.
Nope. If you find a solution the community would love it. ;)
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.