Turn off Theme for a page, or forum
-
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)
- The topic ‘Turn off Theme for a page, or forum’ is closed to new replies.