• I have never used CSS prior to yesterday. Published a forum for my users. The forum was 50% of the page and would not stretch to the width of the page.

    Using WordPress 6.4.1 , I sought to simply apply a null theme, or even ANY other theme that would use my full page for the forum. Unable to find the option to change theme for a page.

    Ended up hacking my way through it and thought I would share what did work. Under:

    Appearance -> Edit CSS

    I placed the following code where “page-id-#” can be found in the URL of the page that you are editing in the WordPress GUI.

    .page-id-202	.site-header {
    	display: none;
    }
    
    .page-id-202    .site-footer {
    	display: none;
    }
    
    .page-id-202    .site {
    	margin: 1.5em 1%;
    	padding: 1.5em 0 0;
    }
    
    .page-id-202	.site-inner {
    	max-width: none;
    	min-width: 960px;
    	min-height: 700px;
    	max-height: none;
    	margin: 0;
    	padding: 0;
    }
    
    .page-id-202    .site-content {
    	margin: 0;
    	padding: 0;
    }

    You will find that Widgets still appear on the page unless you turn their visibility off for your page.

    Appearance -> Widgets -> Visibility (for every widget listed)

    • This topic was modified 8 years, 6 months ago by tkcdac.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You should duplicate your page template file to create a custom page template specifically for your forums.

    You need to rename the file to include your forum page slugname, such as page-forum.php.

    You can now modify this file and it will only affect the page that contains your forums, allowing you to remove the sidebar code. You can then use CSS to modify the width of the main column for this template.

    Hope this helps.

    Thread Starter tkcdac

    (@tkcdac)

    Thank you for making this solution better.

    I had to post this, as I spent a very long time looking for a solution and was unable to find one. Usually my posts are placed in frustration so I can find the answer later.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Turn off Theme for a page, or forum’ is closed to new replies.