XF 1.2 Remove sidebar on certain pages?

LurkerLou

Active member
How would I go about removing the sidebar on certain pages. I found out how to do it globally but not on specific pages.

.sidebar {
display: none;
}

.mainContent {
margin-right: 0;
}

How would I specify a specific page?
 
Add the page class to the selector, e.g. .forum_list .sidebar

The FAQ in my signature explains how to check the template name for the page you're on.
 
Top Bottom