Skip to content

Notice placement on admin Plugin page #11

@JoshuaHungDinh

Description

@JoshuaHungDinh

Description

When placing a notice on the WordPress Admin Plugins page and opting to position it below the header, the notice is correctly placed beneath the header. However, this causes the 'Add New Plugin' button to be pushed down below the notice, affecting the layout.

Steps to reproduce

  • Create a notice ensuring that the notice is displayed on the admins plugins page with its location set to below_header.
  • Visit the plugins page and view the notice.

Example:

AdminNotices::show($this->id, [$this, 'renderCallback'])
->custom()
->location('below_header')
->dismissible()
->enqueueStylesheet(('http://example.com')
->enqueueScript('http://example.com')
->on('plugins.php');

Visuals

Image

Expected behavior

The notice is placed beneath both the Plugin header and the 'Add New Plugin' button. Ideally after the
<hr class="wp-header-end"> element.

System info

Arc 1.85.1
WordPress 6.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions