New Theme not Showing Up



  • Forked the default theme and made some modifications. Then published it to npm and ran sudo npm install package and restarted the forum. The theme is still not loading. Any suggestions?


  • Global Moderator

    @jamslatt ./nodebb build, make sure you have the theme selected in ACP -> Extend -> Theme



  • @pitaj I have rebuilt nodebb but cannot select the theme because it does not show up.

    This is the theme if you want to check for compatibility.

    Here is NPM


  • Global Moderator

    @jamslatt make sure it's inside node_modules in the NodeBB directory.



  • @pitaj it is
    alt text


    james@nodebb:~/nodebb$ sudo npm install exo-theme
    nodebb@1.5.1 /home/james/nodebb
    └── exo-theme@1.0.0

    npm WARN eonasdan-bootstrap-datetimepicker@4.17.47 requires a peer of moment-timezone@^0.4.0 but none was installed.
    james@nodebb:~/nodebb$ sudo ./nodebb build
    [deprecated] String.prototype.rtrim is deprecated as of NodeBB v1.5; use utils.rtrim instead.
    4/7 06:41:59 [9619] - info: [build] Building in parallel mode
    4/7 06:41:59 [9619] - info: [build] plugin static dirs build started
    4/7 06:41:59 [9619] - info: [build] requirejs modules build started
    4/7 06:41:59 [9619] - info: [build] client js bundle build started
    4/7 06:41:59 [9619] - info: [build] admin js bundle build started
    4/7 06:41:59 [9619] - info: [build] client side styles build started
    4/7 06:41:59 [9619] - info: [build] admin control panel styles build started
    4/7 06:41:59 [9619] - info: [build] templates build started
    4/7 06:41:59 [9619] - info: [build] languages build started
    4/7 06:41:59 [9619] - info: [build] sounds build started
    4/7 06:42:02 [9619] - info: [build] admin js bundle build completed in 3.004sec
    4/7 06:42:08 [9619] - info: [build] client js bundle build completed in 8.163sec
    4/7 06:42:08 [9619] - info: [build] sounds build completed in 8.156sec
    4/7 06:42:08 [9619] - info: [build] plugin static dirs build completed in 8.669sec
    4/7 06:42:16 [9619] - info: [build] admin control panel styles build completed in 16.888sec
    4/7 06:42:19 [9619] - info: [build] requirejs modules build completed in 19.535sec
    4/7 06:42:19 [9619] - info: [build] client side styles build completed in 19.601sec
    4/7 06:42:22 [9619] - info: [build] templates build completed in 22.989sec
    4/7 06:42:24 [9619] - info: [build] languages build completed in 24.918sec
    4/7 06:42:24 [9619] - info: [build] Asset compilation successful. Completed in 24.939sec.
    james@nodebb:~/nodebb$ sudo ./nodebb restart


    alt text


  • Admin

    nodebb mobules should either start with nodebb-plugin- or nodebb-theme- so in your case your theme name should be nodebb-theme-exo-theme


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.