Hello,
How can I remove the toolbar header for Django? I am using the dark header layout, but when I set the following in _templates/layout/default.py to false or comment it out it doesn't change anything:
def initDarkHeaderLayout(context):
KTTheme.addHtmlAttribute("body", "data-kt-app-layout", "dark-header")
KTTheme.addHtmlAttribute("body", "data-kt-app-header-fixed", "true")
KTTheme.addHtmlAttribute("body", "data-kt-app-toolbar-enabled", "false")
KTTheme.addHtmlClass("body", "app-default")
return context
I apologize for the delay. To remove the toolbar header in Django, you need to modify the main layout file. Here's how you can do it:
Open the main layout file located at /django/starterkit/_templates/layout/default.html.
Find the line that includes the toolbar partial:
{% include "./partials/sidebar-layout/_toolbar.html" %}