Skip to content
Snippets Groups Projects
Unverified Commit fb96f0bd authored by Saurabh Kumar's avatar Saurabh Kumar Committed by GitHub
Browse files

Hide wagtail admin > sidebar > search (#3810)

Since the sidebar is generated via javascript / react, the best way I
could find to remove it is to use css and then hide it.

Fixes #3808
parent efbdc402
No related branches found
No related tags found
1 merge request!76Merge up to 5.6.0
from django.templatetags.static import static
from django.utils.html import format_html
from wagtail import hooks
@hooks.register("insert_global_admin_css")
def global_admin_css():
return format_html(
'<link rel="stylesheet" href="{}">', static("css/wagtail_global_admin.css")
)
.sidebar form[role="search"] {
display: none;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment