admin管理员组文章数量:1415652
Is there a way to remove the default styling of the gutenberg editor?
I am building a custom theme using ACF blocks, part of one of the blocks has a button that is being displayed from the template file.
<button type="button" class="button">Button Text</button>
Everything on the front end looks fine and my styles for ".button" are being used correctly.
The problem I have is when editing these blocks in the editor there is a class called "wp-core-ui" being added to body tag which overrides all my .button styles.
When I remove this class via chrome dev tools everything works as it should from what I can see but this doesn't seem like a clean solution as it could be affecting parts of the site I've not noticed yet.
本文标签: cssRemove WordPressGutenberg button styles for ACF blocks
版权声明:本文标题:css - Remove WordPressGutenberg button styles for ACF blocks 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745160110a2645400.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论