|
#1
Feb 18, 2010, 04:23 AM
|
|
[SOLVED] Hide left sidebar on just one custom php page that isn't in the options list
Hi guys,
I created a search.php page to show Google Search results on my page within my Atahualpa website, all works fine.
Now I don't want to show the left sidebar on this search.php page. Although, the script is taking the variable $bfa_ata['left_col'] I guess, which is "on" because I am on the homepage then, and in Atahualpa theme options I chose to show left sidebar on homepage, so it also shows up on the search result page. I want it on the homepage, but not on the search.php page. How do I do that? It's not in the Atahualpa sidebar options because that's all standard Atahualpa pages, not my custom search.php.
Can I just change the $bfa_ata['left_col'] variable, and if so, how? How do I do all this. My php and theme knowledge only goes so far....
Your help would be very much appreciated, thanks in advance!
|
#2
Feb 18, 2010, 05:04 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
did you try unchecking ATO->Style & configure SIDEBARS->LEFT sidebar: Display on:->Search Results
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Feb 18, 2010, 06:53 AM
|
|
Yes, I did, didn't work. Doesn't match it with the search.php page, because it is customized to google search I guess...
|
#4
Feb 18, 2010, 07:41 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
?? odd, I just created a search page and unchecking those items worked for me. It must have to do with your code. If you send it I'll take a look.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Feb 18, 2010, 07:50 AM
|
|
thanks for wanting to help out. Here is my code:
<?php
require('./wp-blog-header.php');
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header();
?>
<!-- Google CSE Search Box Begins -->
<!-- Google CSE Search Box Ends -->
<!-- Google Search Result Snippet Begins -->
<!-- Google Search Result Snippet Ends-->
<?php
get_footer();
?>
|
#6
Feb 18, 2010, 07:52 AM
|
|
Maybe it is because my search.php is in the root, not in the atahualpa theme folder??
|
|