Can I eliminate the right-hand sidebar(s) entirely on Pages but not on Home page?
I have found some info that comes close, but I want to eliminate the right-hand sidebar(s) altogether on Pages but not the Home page.
Doable? If so, how? Thanks - Bonnie B |
Just select only the Hompage in the appropriate places in the "Style and configure sidebars" section.
|
ATO->Style & configure SIDEBARS->RIGHT sidebar: Display on: and RIGHT INNER sidebar: Display on:
If you only want to eliminate them on some pages, get teh page ID and put it in the 'RIGHT sidebar: Don't display on Pages:' and 'RIGHT INNER sidebar: Don't display on Pages:' options |
This is a bit different kind of question:
I need to have a single post with no sidebars. There is no way in the ATA Options to do this, that I can see. I think the functions.php would have to be modified, but I'm not sure how to do it. Just do some kind of "if is" statement? |
when you say 'single post' are you displaying that on a single page? because you could exclude that page. Or do you want the sidebare when the post is on a multi post page and if someone clicks on it, then you don't want the sidebars showing, but only on that post?
|
Not a Page, a post. It's a post in the history category where we want to put some old content that's very wide and overflows the sidebars, so I want no sidebars on just that post, and not on the history category itself. So none of the theme options in the sidebar config area will help.
|
Quote:
|
http://www.larchmontgazette.com/hist...-breaks-loose/
This is what we did last night to get the story out there before we knock off to do our Thanksgiving cooking. We wanted to reproduce the layout of our pre-Wordpress HTML page, with a wide extra left column with other links to the 1922 paper. We left that off so we could sort of fit this into the ATA center column. |
paula, edit bfa_get_options.php and go to line 193 (version 3.4.4) which should be
HTML Code:
// Put the sidebar results into our global options variable in case we need it somewhere else: HTML Code:
if ($bfa_ata['current_page_id'] == '8941') { |
That worked! Thank you! Now we'll fill in the newly freed-up space with the other content we wanted. Super!
|
I spoke too soon. It did work, but the code seems to have disrupted something else. This is the email I just got from my partner:
Quote:
|
I'm not sure if this will help, but I realized it is 'better' code than I gave you originally. try this instead
HTML Code:
if ($bfa_ata['current_page_id'] == '8941') { |
Well, I tried that and got the same error when I tried to delete another post. Then I removed any of your new code, and got the same error again. I've now uploaded a fresh copy of that file, and all is well again. I dunno....
|
In that case, something odd is happening with your editor. What are you using to edit the module?
|
I use Filezilla to FTP and Textwrangler for editing. I wonder if the settings in TW somehow got messed up? It's set for Unix.
|
if your talking about the 'translate line breaks' I've got mine set to Unix (LF)
One thing I have run into a number of times is if I copy from a post on the forum and paste it into my code, some invisible characteres get copied. If you set Textwrangler to show invisibles, I'll see some black dots where it looks like spaces should be. I delete teh black dots and enter a space. But that generally causes a t-string error... |
All times are GMT -6. The time now is 12:54 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.