Add menu items to Lavendar.
-
There's no menu.tpl in the partials directory of the Lavendar theme. Where would you make the changes?
-
@Chris Vanilla.
Or create one.
-
Nah, I just want to add an icon to the menu. Don't really need to create a theme to do that..
-
There's a plugin that does this. Or at least shows you how via hooks. on the iPad unfortunately, so can't guide you more specifically, look at the shoutbox plugin code. Should be in there.
-
@Chris Depending on what you want to do you can use hooks like @a_5mith suggested. The hook you'd want to use is: filter:header.build
What I don't like about the hook though is it just appends the new items to the end of the existing ones...I don't think you can change the order, or remove existing ones. I could be wrong though.
-- or --
The menu.tpl for lavender is actually being pulled in from the vanilla theme:
nodebb-theme-vanilla/templates/partials/menu.tpl
So, just copy the
menu.tpl
from vanilla to your lavender partials folder and change as needed.
-
@mootzville Thanks!