We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c1302f commit c6eb91fCopy full SHA for c6eb91f
src/resources/admin-notices.js
@@ -68,7 +68,12 @@
68
const location = $notice.data(locationAttribute);
69
70
if (location === 'below_header') {
71
+ const $pageTitleAction = $('a.page-title-action');
72
+ if ($pageTitleAction.length) {
73
+ $notice.insertAfter($pageTitleAction);
74
+ } else {
75
$notice.insertAfter('h1');
76
+ }
77
} else if (location === 'above_header') {
78
$notice.insertBefore('h1');
79
} else if (location === 'inline') {
0 commit comments