Gutenberg Custom Style problem with background image

Question

When calls theme’s style.css file with add_editor_style inside gutenberg, background images are not loading properly.

Lets say:

#intro {
    background: url(assets/main.png) ;
}

Its working properly on front-end like:

mydomain.com/wp-content/themes/mytheme/assets/main.png

But when in gutenberg, WordPress tries to load:

mydomain.com/wp-admin/assets/main.png

Am i missing something?

0
Unsal Korkmaz 2 years 2020-01-03T08:38:59-05:00 0 Answers 77 views 0

Leave an answer

Browse
Browse