admin管理员组文章数量:1125560
The Contact Form 7 plugin includes a spinner that appears when the form is being submitted. How can I stop this spinner from showing up? I don't want to use the methods of hiding it with "hidden" or "display:none" because this still causes the spinner to load and can cause a layout shift. What is another solution to prevent the spinner from running?
The Contact Form 7 plugin includes a spinner that appears when the form is being submitted. How can I stop this spinner from showing up? I don't want to use the methods of hiding it with "hidden" or "display:none" because this still causes the spinner to load and can cause a layout shift. What is another solution to prevent the spinner from running?
Share Improve this question asked May 10, 2023 at 11:16 Aprilia ParrinoAprilia Parrino 431 gold badge2 silver badges9 bronze badges2 Answers
Reset to default 1If you're still seeing the spinner after adding this CSS
.wpcf7-spinner {
display: none !important;
visibility: hidden !important;
}
then you're CSS selector isn't specific enough and you can try adding more selectors to increase specificity.
It's not necessary to completely disable CF7 Javascript to simply hide the spinner.
just put this snippet ...
add_filter( 'wpcf7_load_js', '__return_false' );
... in your child-themes functions.php and just like that, the matter is solved.
本文标签: Contact Form 7how to disable spinner the right way
版权声明:本文标题:Contact Form 7 - how to disable spinner the right way 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736630094a1945759.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论