css - Remove WordPressGutenberg button styles for ACF blocks

Is there a way to remove the default styling of the gutenberg editor?I am building a custom theme using ACF blocks, part

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745160110a4614350.html

相关推荐

  • css - Remove WordPressGutenberg button styles for ACF blocks

    Is there a way to remove the default styling of the gutenberg editor?I am building a custom theme using ACF blocks, part

    4小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信