How to get rid of search box on a wordpress template

by 5 comments
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
#internet marketing #box #rid #search #template #wordpress
  • Profile picture of the author Preben Frenning
    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
    • Profile picture of the author ptone
      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"); ?>


      <!--<?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.
  • Profile picture of the author phil.wheatley
    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

    • Profile picture of the author Preben Frenning
      @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

Next Topics on Trending Feed

  • 14 {{ upvoteCount | shortNum }} 5

    Hi, I'm quite new on internet marketing and I decided to start writing lots of articles related with psychology/personal development tips niche (non-published). However, after writing 40-50 articles I started to read a lot of niche sites and I'm a little confused that probably my articles are getting too broad for this niche. Since I didn't target it for a specific mental health pathology I believe that I went too broad and will be very hard to monetize. I would appreciate any suggestions

  • 2 {{ upvoteCount | shortNum }} 5

    There is a fine line between being respectful and offensive to one's point of view and in advertisement it can either lead to effective marketing or a lot of trouble. As they say that one man's controversial idea is another man's offensive idea. Sometimes resorting to provocative campaigns are totally worthwhile if they help you to increase your sales and establish a sustainable brand name in the market. But does that only work for big corporations like Apple, Coca-cola to take risks like these? Can small brands or startups consider such tactics for their advertisement plan as well without destroying their amateur brand legacy? These intriguing questions always pop up in my mind and I think that whether is it a good idea to create advertisements that are beautiful and genuine to attract customers which has a greater possibility of going flat with minimum response from the market or to go for calculated controversial ad campaign against your competitor to gain a lot of public attention?

  • 1 {{ upvoteCount | shortNum }} 5

    I scour the WaFo to see if there are any unique methods, etc. that maybe I haven't thought of. Sometimes there are! But one thing that I haven't seen much of is posts that will bring you BACK TO THE BASICS. No matter WHAT level of knowledge you think you are at... if you are not getting clients consistently and bringing home paychecks... then you need to re-gather.