block editor – Custom style css doesn’t work in Gutenberg preview

Question

I added custom CSS file to WordPress blocks with add_editor_style( '/css/posts.css' );. The problem is this style doesn’t work for mobile and tablet preview in Gutenberg Editor. Because Im using Kadence Blocks plugin, I’ve tried to add additional CSS selector with body.kadence-preview-width-mobile class but it’s doesn’t work. So what should I do to makes Gutenberg mobile preview works with custom CSS styles?

0
Damian P. 1 year 2021-11-09T20:01:14-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse