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

Home Forums Support [Resolved] GP and TinyMCE Advanced plugin + editor-style.css Issues

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #405418
    threepoint

    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.

    #405694
    Tom
    Lead Developer
    Lead Developer

    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.

    #405826
    threepoint

    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.

    #405919
    threepoint

    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.

    #406031
    Tom
    Lead Developer
    Lead Developer

    No problem! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.