Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Hiding the side panel when viewing a discussion.

ShmizzleShmizzle New
edited November 2010 in Vanilla 2.0 - 2.8
Is it possible to modify my theme so that the side panel ("#Panel") is hidden when viewing a discussion, but visible on all other pages?


  • Options
    LincLinc Detroit Admin
    Your options are to do this with CSS (using the body's class, which changes depending on what controller is being used) or in the default.master.php template; I recommend the latter.

    Edit default.master.php and put an if statement around the panel div based on what controller is being called.
  • Options
    Thanks, I had a feeling I had to modify the default.master.php file.

    What function would I call in that file that would tell me which controller is being called?
Sign In or Register to comment.