admin管理员组文章数量:1305583
I have a div.notice.updated
that is moving on the DOM and I can't locate the code that's doing that. Disabled all plugins and changed to a default theme without results.
I'm printing the element on the main content block and it jumps to the sidebar after the page finishes loading (it's clearly jQuery in action):
<div class="notice updated">Form sent</div>
I'm using Frank Bueltge's Admin Style plugin to get standard WP HTML code for the backend.
I have a div.notice.updated
that is moving on the DOM and I can't locate the code that's doing that. Disabled all plugins and changed to a default theme without results.
I'm printing the element on the main content block and it jumps to the sidebar after the page finishes loading (it's clearly jQuery in action):
<div class="notice updated">Form sent</div>
I'm using Frank Bueltge's Admin Style plugin to get standard WP HTML code for the backend.
Share Improve this question asked Jan 25, 2021 at 15:53 brasofilobrasofilo 22.1k8 gold badges70 silver badges264 bronze badges1 Answer
Reset to default 1Searching for .notice
on WP source code I found the culprit at wp-admin/js/common.js
:
$( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $headerEnd );
Adding an inline
class to my code solves the issue:
<div class="notice updated inline">Form sent</div>
本文标签: jqueryNoticeUpdated div moving around unprompted
版权声明:本文标题:jquery - Notice-Updated div moving around unprompted 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741804653a2398427.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论