Archived topic
Add custom styles to gutenberg editor without child theme
7 replies · Started by Marco on July 29, 2021
Hi, I'm trying to add my custom styles file to make the editor as similar as possible to the frontend.
But I don't use a child theme and I don't want to, and if I place the file inside rhe theme folder it will get deleted when updating.
So, is there any other way to do this? Anybody has a solution?
Thanks
Hi there,
the alternative is to use the Code Snippets plugin.
Hi David,
yes I use Advanced scripts, but I'm having problems to target the file location.
I'm trying this with no success:
add_editor_style( '../gutenberg/style-editor.css' );
Hi there,
Can you provide the full path to the file? So we can have a better idea of w/c way to go with it. (and to confirm if the file exists)
You can use the private information text field to keep so only the support team sees it. Let us know. :D
Yes here it is
Have you tried adding the Full URL in the script ? As the relative path is probably having an issue due to how the scripts plugin is writing its code.
Yes that worked
Thank you
Glad to be of help.