@edobejar Hmm, that’s a pretty complicated modification.
To remove the sidebar you’d have to override some templates, Javascript functionality as well as apply some CSS overrides. Also, I’m not sure how you’d then navigate your site.
To hide the sidebar, you’d need to override the CSS that defines the columns and their behaviour and define new breakpoints so that the three column layout isn’t activated.
I know this doesn’t answer your query directly, but I’ve done the opposite (hiding the activity/comments sidebar) to give the central column more room on this site with a custom template and similar CSS to that which you’d need to write:
body.page-template-full-width #header,
body.page-template-full-width #switcher,
body.page-template-full-width #wrapper {
width: 84%;
}
body.page-template-full-width #footer {
width: 84%;
}
@media (max-width: 1400px) {
body.page-template-full-width #header,
body.page-template-full-width #switcher,
body.page-template-full-width #wrapper {
width: 100%;
}
body.page-template-full-width #footer {
width: 100%;
}
}
body.page-template-full-width #switcher ul li.activity-item {
display: none;
}
Hopefully you can see from this how to manipulate the columns and can apply that to the Table of Contents column instead.
Cheers, Christian