Forums

[resolved] Help removing search box from SimpleX header? (3 posts)

  1. AtomicPop
    Member
    Posted 10 months ago #

    I've just volunteered to take over administrating a WP site. I'm a relative novice with WP but probably somewhat more experienced than the previous site admin. At some point in the past he added a search box within the header of the site. Unfortunately it obscures part of the organization's title.

    http://daneforeclosurehelp.org

    I can't figure out how he added the search box and/or how to get rid of it....and neither can the last admin. He has no idea how he added it.

    Can anyone lend a little insight on what to look for and where? It's not widget based. Seems to be hard coded but I'm not sure where/what to look for. Any feedback would be greatly appreciated. It looks terrible right now and I really need to get it out of there.

    Thanks! Patrick

  2. pjari
    Member
    Posted 10 months ago #

    this should be pretty simple. find the bit of code in the header.php around line 21 that starts with:

    <div id="searchdiv"><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>

    and make it
    <!--div id="searchdiv"--><!--?php include (TEMPLATEPATH . '/searchform.php'); ?--><!--/div-->

    (I am leaving the line effectively the same, merely commenting out the code that you are not interested in. This way, all you have to do is remove the !-- and -- later, and you are back to the way you were.)

    Paul

  3. AtomicPop
    Member
    Posted 10 months ago #

    Ah, brilliant! Perfect! I had previously tried to comment it out but must have done it incorrectly as it didn't work.

    Looks great now though. Thanks so much for the help!

Reply

You must log in to post.

About this Topic