admin管理员组文章数量:1124391
I'm trying to find a way to have the duotone effect removed when the mouse hovers over the image. I had done this on an old theme with CSS – before the gutenberg duotone feature was added.
I can find a lot of information online about removing the feature entirely. That is not what I want to do.
I'm trying to find a way to have the duotone effect removed when the mouse hovers over the image. I had done this on an old theme with CSS – before the gutenberg duotone feature was added.
I can find a lot of information online about removing the feature entirely. That is not what I want to do.
Share Improve this question asked Feb 16, 2024 at 18:24 SteveLambertSteveLambert 2302 silver badges7 bronze badges1 Answer
Reset to default 1Yes.
[class*="wp-block"][class]:hover > img {
filter: none;
}
That ruleset works for hover on either Image or Cover blocks but you may want to write less generic selector for it depending on your intent.
本文标签: block editorIs it possible to remove the gutenberg duotone effect on hover
版权声明:本文标题:block editor - Is it possible to remove the gutenberg duotone effect on hover? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736624839a1945652.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论