We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a15f90 commit 900a959Copy full SHA for 900a959
src/resources/admin-notices.js
@@ -68,7 +68,9 @@
68
const location = $notice.data(locationAttribute);
69
70
if (location === 'below_header') {
71
- // Place after the page action element (e.g., "Add Plugin" on Plugins page) if it exists, otherwise after <h1>.
+ // Place notice after the page action element (e.g., "Add Plugin" on the Plugins page) if it exists;
72
+ // otherwise, insert it after the <h1>. On some pages, placing the notice directly after the <h1>
73
+ // can cause it to appear between the header and its action button, leading to layout issues.
74
const $pageTitleAction = $('a.page-title-action');
75
if ($pageTitleAction.length) {
76
$notice.insertAfter($pageTitleAction);
0 commit comments