Empty selector and two tabs in generated code

Author Posts

Martin_1

Hi,

Not a big deal but when I look at the generated code I see an empty selector .wp-block {} that doesn’t show up in any of the folders or any of the electors I targeted.

I also see two similar tabs in the generated code view panel. Why would that be?


Sebastian

Hey Martin,

Microthemer adds an empty selector “.wp-block {}” at the top of a stylesheet to ensure that Microthemer files can be loaded in the Gutenberg editor iframe. It’s a quirk of the block editor that certain selectors must be present for them to be allowable. However, this extra style rule is not necessary for users not making use of the recent Gutenberg integration. I’ve just released an update (7.3.1.5) so that “.wp-block {}” will not be added if you turn off the “Support admin area style loading” preference via:

Settings > General > Preferences > WORDPRESS ADMIN.

I hope that all makes sense. I’m hoping this workaround won’t be required forever.

Cheers,
Sebastian


Martin_1

Hi Sebastian,

Makes sense and it wasn’t a big issue but I found it weird :-).

Any reason for the double tab with the exact same CSS?


Sebastian

Ah, the tab issue – could you send me a screenshot of that?


Martin_1

I mailed you 2 screenshots of both tabs.

You must login or register to reply to this topic.