Buy Sell Discuss UK Domain Names at AcornDomains.co.uk affiliate window

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 03:16:57 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Content Management Systems > Wordpress
Connect with Facebook

Wordpress Wordpress Blogs

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 27-07-2011, 05:03:04 PM     #1 (permalink)

 
Join Date: Sep 2010
Posts: 169
viceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant future

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!
viceroy is offline  
Old 27-07-2011, 05:16:42 PM     #2 (permalink)

 
fish's Avatar
 
Join Date: Nov 2006
Posts: 2,316
fish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond reputefish has a reputation beyond repute

Depending on the theme you can disable sidebars in the page attributes tab check out the template dropdown to view your options.
fish is offline  
Old 27-07-2011, 05:31:36 PM     #3 (permalink)

 
Join Date: Sep 2010
Posts: 169
viceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant future

Hey fish, thanks for the reply, unfortunately theme doesn't have that option and I've tried editing the page.php file but can't get the results I'm after... it's driving me insane!
viceroy is offline  
Old 27-07-2011, 06:21:11 PM     #4 (permalink)

 
newpbc's Avatar
 
Join Date: Feb 2010
Location: Wirral - UK
Posts: 994
newpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond repute

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 |
newpbc is offline  
Old 27-07-2011, 07:28:37 PM     #5 (permalink)

 
Join Date: Sep 2010
Posts: 169
viceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant future

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!
viceroy is offline  
Old 27-07-2011, 07:41:18 PM     #6 (permalink)

 
newpbc's Avatar
 
Join Date: Feb 2010
Location: Wirral - UK
Posts: 994
newpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond repute

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 |
newpbc is offline  
Old 27-07-2011, 07:49:53 PM     #7 (permalink)

 
peter_w's Avatar
 
Join Date: Nov 2008
Location: Leeds, UK
Posts: 470
peter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond repute

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 } ?>
__________________
You'll find me on LinkedIn, Twitter and Google+.
peter_w is offline  
Old 27-07-2011, 07:52:05 PM     #8 (permalink)

 
peter_w's Avatar
 
Join Date: Nov 2008
Location: Leeds, UK
Posts: 470
peter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond repute

That should have been !is_page but I can't seem to edit the post on my iPhone.
__________________
You'll find me on LinkedIn, Twitter and Google+.
peter_w is offline  
Old 27-07-2011, 09:05:48 PM     #9 (permalink)

 
Join Date: Sep 2010
Posts: 169
viceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant future

Peter,

Thanks for the reply, i did try this earlier but can't get the text/ content to take over the whole of the page, i'll prob have to play with the css? Have left this mod live if you want to se what i mean thanks again for the help!!

cheers!
viceroy is offline  
Old 27-07-2011, 11:09:06 PM     #10 (permalink)

 
Join Date: Sep 2010
Posts: 169
viceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant futureviceroy has a brilliant future

thanks guys for the help, have gone and made another theme, needed an update anyways, too many tweaks here and there made life way too complicated! got to look into conditionals more, some great applications
thanks again,
cheers
viceroy is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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

75% off Domains at Network Solutions®.


All times are GMT. The time now is 03:16:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".