Archived topic
GP and TinyMCE Advanced plugin + editor-style.css Issues
4 replies · Started by threepoint on October 18, 2017
Hi there,
I've been having some serious trouble trying to get my own editor-style.css working with TinyMCE in a child theme.
On research I found this topic below however it doesn't appear to work for me.
https://generatepress.com/forums/topic/how-to-call-editor-style-css-from-child-theme/
Are you able to advise how I can achieve this?
Much appreciated.
You've tried this?:
add_action( 'after_setup_theme', 'tu_child_setup' );
function tu_child_setup() {
add_editor_style( 'path/to/editor-style.css' );
}
You have to update the path/to/ part to match the path to your file.
Hi Tom
Yes I have. Here's my code:
function generate_child_setup()
{
add_editor_style( 'editor-style.css' );
}
add_action( 'after_setup_theme', 'generate_child_setup' );
The editor-style.css is in the root of the child theme directory.
This is very strange. It seems to work perfectly fine now. Not entirely sure why this is. I will setup a fresh WordPress install and test this again.
Thanks Tom for your reply, nonetheless.
No problem! :)