![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Wordpress Wordpress Blogs |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | Removing sidebars from specific pages?
Hey, was just wondering if anyone knows how to remove sidebars from a specific page (but leaves them on the rest of the site). Example: have been playing with a bit of wordpress recently and have set up clubcard/info to learn. Now I've sorted the sidebars on the pages but don't want them to show up on the page that the search results show up on in order to comply with the custom search engine 795 px minimum. Basically need to remove sidebars to be able to use the whole page. Any help/ info would be much appreciated! |
| |
| | #4 (permalink) |
![]() |
You can set up specific template to show you results if you theme doesn't have one already http://codex.wordpress.org/Creating_a_Search_Page If you already have a search page just simply remove the sidebar call from it. If this makes no sense and you use a freely available theme post its name and I'll take a look
__________________ Laterooms Wordpress Solution | |
| |
| | #5 (permalink) |
![]() |
hey newpbc, thanks for the help, theme is a custom one, made when i was a little less experienced... basically, i'm just trying to show the search results on a static page (www.clubcard.info/search-results) and want to remove sidebars and use the entire page area to display results from the custom search engine, i'm not sure about setting up a template to display the search results and don't have the option to choose a template when writing a page anyway? I've sort of gathered that i'm going to have to figure out some php to remove sidebars from just a single page and then list the ones i want them shown on? might just remake the entire theme at this rate... any thoughts? cheers! |
| |
| | #6 (permalink) |
![]() |
Does your theme have a file called search.php If not try this make a copy of your index.php rename it search.php Open search.php Then remove reference to sidebar 1 and sidebar 2
__________________ Laterooms Wordpress Solution | |
| |
| | #7 (permalink) |
![]() |
This page should hold the answer. http://codex.wordpress.org/Conditional_Tags Just wrap the whole sidebar with one of the conditionals, by the sounds of it: <?php if(is_page('search-results')) { ?> Sidebar code <?php } ?> |
| |
| | #8 (permalink) |
![]() |
That should have been !is_page but I can't seem to edit the post on my iPhone.
|
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Yellow Pages buys 411.ca, ClearSky. - Montreal Gazette | RSS | Domain Name News | 0 | 22-02-2010 04:59:11 PM |
| Anyone checked their adult Sedo parked pages lately? | WestHamFan | Sedo | 9 | 25-04-2008 08:32:30 AM |
| Yellow Pages Income Fund Q1 profit at $85.2 million; to focus on ... - 940 News | RSS | Domain Name News | 0 | 09-05-2006 09:59:06 PM |
| ND Sandbox with 7 new landing pages | NameDriver | NameDrive | 14 | 05-05-2006 08:46:40 AM |