Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Hide center column on one page (http://forum.bytesforall.com/showthread.php?t=17386)

shallowmeya Apr 22, 2012 06:27 PM

Hide center column on one page
Hi there,
I made a new static page to use as the front page, and I want to hide the center column (the one that contains all the posts) only on that page. I already set up a different page as the posts page, so the content of the center column isn't showing up on the front page. However, the box/container for the center column is still there and it's displacing my sidebars.

I temporarily added CSS to hide the center column -- I used display: none; -- which worked for my front page, but now the center column disappeared from every page!

I feel comfortable enough getting into the theme files and editing them manually, but I'm just not sure where to go to specify that I only want the center column hidden on the front page.

Here's the site: elizabethpovinelli.com

As you can see, if you click on "blog" there is nothing there...

Thanks in advance for your help!

shallowmeya Apr 22, 2012 06:34 PM

Nevermind, I figured it out! This is probably not the most legitimate way to do it, but I just deleted the center column cell... so I took <td id="middle"> out of the bottom of the header and </td> out of the top of the footer.

juggledad Apr 22, 2012 07:24 PM

the way to do it with CSS would have been to prefix your selector with 'body.page-id-xx' where xx is the id of the page, then the css would only apply to that page.

but there are many wayes to skin a cat. :)

All times are GMT -6. The time now is 09:29 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.