Thank you. I'll try to make my own plugin for it.
Can you set the default width to boxed?
Rephrasing #1-- The two standard widths are narrow (fixed?) and wide (fluid?), which are toggled using the button that appears in the lower right hand corner.
I'd like to be able to choose which one to have on by default. In my case, the narrow one.
Thanks for that code...what file do I put it in?
(I made a small change in the above code, found a mistake) It's meant to be placed in a widget, although you can put it directly into recent.tpl and unread.tpl if you're running your own custom theme.
This line, change
container-fluidto make that the default instead
Any idea what I might be doing wrong for default width? @psychobunny suggested to change
header.tpl. The file already defaulted to
container-fluid(and hence should show up as narrow not wide, right?):
<body> <div class="navbar navbar-default navbar-fixed-top header" role="navigation" id="header-menu"> <div class="loading-bar"></div> <div class="container"> <div class="navbar-header">
But when I open a new window on a new machine and inspect, it's somehow set at
Are there other files that have to be changed from
container? Or can I stick something in custom CSS to change it to
container? I thought it might be a local setting storage issue, but on a random person's laptop it still opened to the wide fluid layout. But apparently it opened to
Ahh if there is no user setting saved in localstorage then fluid is assumed at this line https://github.com/NodeBB/nodebb-theme-lavender/blob/master/static/lib/lavender.js#L6.
If you want to start off with fixed width then change that line to
var fixed = localStorage.getItem('fixed') || 1,