I'm trying to modify a wordpress theme so that if I disable commenting on the page/post, nothing show up (I want to make the 'comment is currently closed' tag to go away). This is the original php file http://pastebin.com/RBQqW9mn .
I made some modification (tuck the H2 element into the if block, so if it's not true, then the message won't show), and this is the current php file http://pastebin.com/sr88Dk9z . After I saved the file, the sidebar just disappeared, why? I don't see a single line of code that relates to the sidebar.
PS: in addition, where is the code for the current widget. This theme has only one widget, but I don't see any register widget function in functions.php (I probably need to replicate it to create a second widget)
Edit: I should be a little more precise, the sidebar just disappeared on the page where comment was disabled. However, on the page where comment is enabled, the sidebar shows.