Assign theme's CSS when building post using block editor

Hi,

I’ve been experimenting with the Wordpress Android app to build posts on the fly, but when I use the block editor it is ignoring the CSS from my theme. When I build posts on my laptop the normal way I use the legacy editor, the old school way, and the post is styled correctly. I’m assuming the same thing happens when building a post on my PC using the block builder.

How can I ensure that the block editor uses the same CSS? For example, an image with a caption should have a border and captialised text, centred. It appears to have the class ‘wp-caption alignnone’. When inserting an image via the block editor, this is ignored. The figure class appears to be ‘wp-block-image size-large’.

One work-around would be to find all the CSS that the block elements use and add them to my style sheet, but that’s a big undertaking and seems counter-intuitive, adding more code.

Is there somewhere where I set the block elements to inherit the same X theme CSS? I don’t want to have to custom change this every time I insert a new block element, so there must be a global setting that says ‘make all block elements inherit the same CSS as my theme’, no?

Thanks.

Hey @demonboy,

Regretfully, we do not support the post creation you’ve described, nor do we support mobile editing, so we cannot answer your question nor provide a solution.

Thank you for understanding.

Hi Christian, fair enough, but this is the standard Wordpress block editor, the one baked in to Wordpress. Is there no communication between X theme and Wordpress basic editing?

Hi @demonboy,

Unfortunately, there is no specific communication between these two.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.