Site logo

Archived topic

GP and TinyMCE Advanced plugin + editor-style.css Issues

4 replies · Started by threepoint on October 18, 2017

Viewing posts 1–5 of 5

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! :)

This archived topic is closed to new replies.