[SOLVED] New LuCI theme - Remove top bar options

Hey everyone, I have been developing a LuCI theme in a ubuntu build system (23.05) and I have a few problems. I have been following the LuCI Documentation.

How can I remove some options from the top bar? (whole menus, and some items from the sub-menu's)

And on a side-note, how do I make my theme selectable on menu makeconfig?

Might be relevant

Assuming you have a github repo for your theme, add it as top entry to your feeds.default.conf
Clean your feeds.
Update and install feeds. You should find your theme under make menuconfig/nconfig.

It was relevant, thank you!

I am developing my theme inside the buildsystem itself, it is located inside themes folder. I am compiling right now, so I will have to wait a while before attempting any new changes

Then you should find it under the usual LuCI themes selections in make nconfig.

That's the thing, it doesn't show up there...

Do I need to mention my theme anywhere else? For the record, I haven't done these steps in the guide:


As i feel like it is outdated, but maybe I am mistaken?

Your themes template or JavaScript logic is responsible for rendering the menu so just don't render what you don't want. The render logic for the default bootstrap theme can be found in /www/luci-static/resources/menu-bootstrap.js.

Create a proper theme package, copy & paste the structure of https://github.com/openwrt/luci/tree/master/themes/luci-theme-bootstrap and replace all instances of "bootstrap" (both in file names and within file contents) with your custom theme name.

If you did that within the feeds/... directory, you might need to refresh metadata and "install" the new package into the buildroot, so that it becomes selectable in menuconfig.

./scripts/feeds update
./scripts/feeds install luci-theme-mytheme
2 Likes

Worked like a charm!

Thank you all very much for your time

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.