Move theme's navigation
-
@田恩睿 Thanks for posting.
If you search the Persona theme
templates/
formenu.tpl
, you'll see that it isIMPORT
ed into the header: https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/header.tpl#L35The easiest way to move this somewhere else would be to move that
<!-- IMPORT
line somewhere else. -
@julian said in Move theme's navigation:
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/header.tpl#L35
Thanks for reply. But I pasted the menu.tpl import to the categories.tpl .But the navigtion could not show in the left-side bar. Did I need to set the categories in somewhere?
https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/menu.tpl#L229
-
@田恩睿 No, you cannot just move that partial to a different place and expect it to work, because the underlying data is not there.
For the menu, it is contained within the header files, so you can only really move it within
header.tpl
.Is there a reason you want the menu only in categories.tpl? It would mean that other places would not have a menu at all.