Freelancer.com

Go Back   Warrior Forum - The #1 Internet Marketing Forum & Marketplace > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs Social Groups Advertise with usHelp Desk

Reply
LinkBack Thread Tools
Unread 25th June 2010, 01:33 AM   #1
Advanced Tea Maker
War Room Member
 
phil.wheatley's Avatar
 
Join Date: 2008
Location: London, England (Know what I mean mate!)
Posts: 1,122
Thanks: 463
Thanked 289 Times in 148 Posts
Default How to get rid of search box on a wordpress template

Hi Gang

You see this site: Martial Arts Wembley - Taekwon-Do Warriors Club - there is a search box top right I want to get rid of, I assume I will have to take some code out?

Anybody know which part of the editor I go to to safely remove it, or which code to remove?

Many thanks
Phil

[SIGPIC][/SIGPIC]


It's still not working for you??? Need direction?...
---->>>> BrainDirection.com <<<<----
phil.wheatley is offline   Reply With Quote
Unread 25th June 2010, 02:33 AM   #2
Creative Kid
War Room Member
 
Preben Frenning's Avatar
 
Join Date: 2008
Location: Oslo, Norway
Posts: 666
Blog Entries: 1
Thanks: 127
Thanked 68 Times in 54 Posts
Default Re: How to get rid of search box on a wordpress template

W00t! Taekwon Do! I'm a black belt
Anyways, it seems the search box is in the header.

Open header.php, and remove <?php include (TEMPLATEPATH . "/searchform.php"); ?>

I assume that would remove it. (I'm not a programmer, nor a WP guru, but using common sense, and looking at the code have worked wonders for me =))

Simply removing searchform.php, might also work.

Remember to back up everything in case it messes up the theme! (The files you change)

I hope that helps,
- Preben

Content overload? Too many tabs open? Then
check out my awesome tech startup! - It will make your life easier.


Twitter? - http://twitter.com/Preben_Frenning
Preben Frenning is offline   Reply With Quote
Unread 25th June 2010, 03:09 AM   #3
Advanced Warrior
War Room Member
 
ptone's Avatar
 
Join Date: 2007
Location: , , USA.
Posts: 509
Thanks: 55
Thanked 80 Times in 51 Posts
Default Re: How to get rid of search box on a wordpress template

Quote:
Originally Posted by Preben Frenning View Post
Open header.php, and remove <?php include (TEMPLATEPATH . "/searchform.php"); ?>
I highly recommend that instead of removing that line of code, you comment out that line of code. Everything between the comment tags will be ignored.

Use <!-- before the code you want "removed" and --> afterward. So that

<?php include (TEMPLATEPATH . "/searchform.php"); ?>

becomes

<!--<?php include (TEMPLATEPATH . "/searchform.php"); ?>-->

I know you stated to back it up first, but it would be so much easier to just remove the comment tags than to restore from backup if something goes wrong.

ptone is offline   Reply With Quote
Unread 25th June 2010, 04:06 AM   #4
Advanced Warrior
War Room Member
 
Join Date: 2008
Location: Ottawa, Ontario
Posts: 776
Thanks: 309
Thanked 467 Times in 285 Posts
Default Re: How to get rid of search box on a wordpress template

Quote:
Originally Posted by ptone View Post
I highly recommend that instead of removing that line of code, you comment out that line of code. Everything between the comment tags will be ignored.

Use <!-- before the code you want "removed" and --> afterward. So that

<?php include (TEMPLATEPATH . "/searchform.php"); ?>

becomes

<!--<?php include (TEMPLATEPATH . "/searchform.php"); ?>-->

I know you stated to back it up first, but it would be so much easier to just remove the comment tags than to restore from backup if something goes wrong.
This is a great little technique that everyone building blogs or html sites should know. If the part to be commented out is long, do it like this:

<!--

stuff to be commented out
blah
blah

-->

It can be used to comment out dates, "posted by" info, and many other annoying things that are included in WP or html templates.
-
Gail_Curran is offline   Reply With Quote
Unread 25th June 2010, 09:26 AM   #5
Advanced Tea Maker
War Room Member
 
phil.wheatley's Avatar
 
Join Date: 2008
Location: London, England (Know what I mean mate!)
Posts: 1,122
Thanks: 463
Thanked 289 Times in 148 Posts
Default Re: How to get rid of search box on a wordpress template

Hey thanks guys for your help, commenting it out seems to be the way forward, I'll try that now.

@Preben, cool, black belt! Although the site is for another guy, not me, although I'm in fact a black belt at Kung Fu instead...I feel a battle of the "which is the best martial arts" coming on lol.

Anyway, thanks again guys for the help

Phil

[SIGPIC][/SIGPIC]


It's still not working for you??? Need direction?...
---->>>> BrainDirection.com <<<<----
phil.wheatley is offline   Reply With Quote
Unread 25th June 2010, 10:54 AM   #6
Creative Kid
War Room Member
 
Preben Frenning's Avatar
 
Join Date: 2008
Location: Oslo, Norway
Posts: 666
Blog Entries: 1
Thanks: 127
Thanked 68 Times in 54 Posts
Default Re: How to get rid of search box on a wordpress template

@phil.wheatley - No need for discussion, I'll just admit that kung fu is better
I got my black belt when I was 12, which is over 8 years ago, so I can't say I'm a "Selv-defense machine" atm :p

And @ptone and @Gail_Curran - Great tip! I have just learned wordpress by myself, so it will DEFINITELY be used in blog creation later

Content overload? Too many tabs open? Then
check out my awesome tech startup! - It will make your life easier.


Twitter? - http://twitter.com/Preben_Frenning
Preben Frenning is offline   Reply With Quote
Reply

  Warrior Forum - The #1 Internet Marketing Forum & Marketplace > The Warrior Forum > Main Internet Marketing Discussion Forum

Bookmarks

Tags
box, rid, search, template, wordpress

Thread Tools

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




All times are GMT -6. The time now is 03:07 AM.