We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b4a6b commit 6741dfeCopy full SHA for 6741dfe
assets/js/src/design-pack-notice.js
@@ -2,7 +2,9 @@ import { createRoot } from '@wordpress/element';
2
3
import DesignPackNotice from './components/DesignPackNotice';
4
5
-const container = document.getElementById( 'fork-design-pack-notice' );
+const container = document.createElement( 'div' );
6
+container.id = 'fork-design-pack-notice';
7
+document.body.appendChild( container );
8
9
if ( container ) {
10
createRoot( container ).render( <DesignPackNotice /> );
inc/Admin.php
@@ -73,8 +73,6 @@ public function add_fse_design_pack_notice() {
73
),
74
'designPackNoticeData'
75
);
76
-
77
- echo '<div id="fork-design-pack-notice"></div>';
78
}
79
80
/**
0 commit comments