Skip to content

Commit

Permalink
Merge pull request #1813 from Codeinwp/fix/submission-multisite
Browse files Browse the repository at this point in the history
Hide "Add New" btn in Submission Dashboard
  • Loading branch information
HardeepAsrani authored Aug 21, 2023
2 parents 5bdc9e4 + 3c41ba6 commit 8a99b08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/plugins/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ private function the_otter_banner() {
.otter-banner__version {
align-self: center;
}

/* 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;
}
</style>
<div class="otter-banner">
<div class="otter-banner__image">
Expand Down

0 comments on commit 8a99b08

Please sign in to comment.