Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: cxk on February 06, 2016, 04:59:27 PM

Title: Shrink header by default?
Post by: cxk on February 06, 2016, 04:59:27 PM
I'd like to have the header shrunk by default for all users. Is that possible?
Title: Re: Shrink header by default?
Post by: br360 on February 06, 2016, 06:30:41 PM
In your index.template.php (the default theme OR the custom theme you are using)...

Find-
bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'false' : 'true', ',

Replace with-
bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'true' : 'false', ',

That will change the header to shrink by default for all members. If you also want it to shrink by default for guests as well...

Find-
bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',

Replace with-
bUseThemeSettings: ', $context['user']['is_guest'] ? 'true' : 'false', ',
Title: Re: Shrink header by default?
Post by: cxk on February 06, 2016, 11:01:02 PM
Thanks!