Increase selector specificity (https://github.com/woocommerce/woocommerce-admin/pull/4289)
* Increase selector specificity * Include exception for some WC pages Co-authored-by: Paulo Iankoski <me@wpdev.com.br>
This commit is contained in:
parent
4f48ae9fb7
commit
015fc89dbd
|
@ -49,7 +49,7 @@ if ( appRoot ) {
|
|||
|
||||
// Render notices just above the WP content div.
|
||||
const wpBody = document.getElementById( 'wpbody-content' );
|
||||
const wrap = wpBody.querySelector( '.wrap' );
|
||||
const wrap = wpBody.querySelector( '.wrap.woocommerce' ) || wpBody.querySelector( '[class="wrap"]' );
|
||||
const noticeContainer = document.createElement( 'div' );
|
||||
|
||||
render(
|
||||
|
|
Loading…
Reference in New Issue