Optimize the Screen Size functionality in the Block Editor
-
Hi Nick,
I was wondering. If you add a screen visibility setting to a block, in the block editor the classblock-visibility__has-screen-size block-visibility__has-visibilityis added. Is it possible to also add there for which device this block is enabled?
So for instance, for a block I have selected that I only want it to be visible on mobile. It would be nice that the classblock-visibility__has-screen-size__mobilewould be added then.Why? Because then I can add some CSS coding to the Block Editor which makes this block only visible when editing for mobile: https://dsc.cloud/4f0660/Screen-Shot-2023-05-22-13-53-19.23.png.
Currently our backend looks like a mess because we have a lot of sections which are only created for mobile. With this feature it is possible to show the real mobile blocks only on the mobile view in WordPress.
Thanks already for your answer!Best,
Nick
PS. I don’t think so, but I’m still hoping for it: will you be attending Wordcamp Europe in Athene in a few weeks? Would be fun meeting you!
The topic ‘Optimize the Screen Size functionality in the Block Editor’ is closed to new replies.