From 04e0488cadb65694956d8109aa7c9d28e19e87ff Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Fri, 11 Aug 2023 15:54:01 +0300 Subject: [PATCH 1/2] fix: submission page Add New in multisite --- inc/plugins/class-dashboard.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/plugins/class-dashboard.php b/inc/plugins/class-dashboard.php index 532bf1123..bc2867b37 100644 --- a/inc/plugins/class-dashboard.php +++ b/inc/plugins/class-dashboard.php @@ -253,6 +253,11 @@ private function the_otter_banner() { .otter-banner__version { align-self: center; } + + /* Hide the "Add New" button for Multisite WP */ + a.page-title-action { + display: none; + }
From 3c41ba6c652db2cf839dd5f027e97fda0c84b3c8 Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Wed, 16 Aug 2023 18:24:07 +0300 Subject: [PATCH 2/2] chore: add elementor selector --- inc/plugins/class-dashboard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/plugins/class-dashboard.php b/inc/plugins/class-dashboard.php index bc2867b37..8ee25a375 100644 --- a/inc/plugins/class-dashboard.php +++ b/inc/plugins/class-dashboard.php @@ -254,8 +254,8 @@ private function the_otter_banner() { align-self: center; } - /* Hide the "Add New" button for Multisite WP */ - a.page-title-action { + /* Hide the "Add New" button for Multisite WP. Second part is for Elementor */ + a.page-title-action:first-of-type, #e-admin-top-bar-root:not(.e-admin-top-bar--active)~#wpbody .wrap a.page-title-action:first-of-type { display: none; }