TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 05:31:44 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 166
  • Total: 166

Collapsed Header as default

Started by uniektekniek, January 27, 2010, 03:40:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

uniektekniek

im using the default theme and im just wondering where i'd find the code to set the header to collapsed when the page loads... like when you click it opens rather than closes..

IchBin

If the theme is not saving the header upshrink it sounds like you have a different problem. When you shrink the header, it should not expand when you reload the page or go to another page.

If that is not your problem, then I would suggest a search at SMF since it was the default theme you're asking about. :)
http://www.simplemachines.org/community/index.php?topic=237013.0

uniektekniek


shane is my name

I was looking to do the same thing a few days ago, and someone in the forum gave me this tip... it works...

go into the index.template.php,  Find the collapse_header section in there and just reverse the false / true like below: 
empty($options['collapse_header']) ? 'true' : 'false