wordpress theme help....

3 replies
Hi Warriors,

I'm trying to figure out how to remove the search bar in the header of my wordpress site (http://thegatebuilder.com). It's the white form in the upper right corner of the header with the "GO" button next to it. When I remove it from the header.php file, it also removes the "Designs/Gallery" tab in the lower right corner of the header that opens up the sidebar. I can't figure out how to remove the search bar without getting rid of the "Designs/Gallery" tab :/

The part of code that removes both at the same time is in the header.php file (which I've attached)... it's this code (in the line 3rd from the end):

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

I've also attached the search php files because that might aid in figuring this out.....

Thanks for the help!!!

Rebecca
#theme #wordpress
  • Profile picture of the author jjpmarketing
    Remove the entire line with "searchc" from opening div to ending div in header.php. That should remove that search box.

    Dennis
    {{ DiscussionBoard.errors[2306062].message }}
  • Rebecca,

    Please, backup your header.php and style.css files before you try this update.

    1. Remove the following code from your header.php file:

    Code:
    <div id="searchc"><?php include(TEMPLATEPATH . '/searchform.php'); ?></div>
    2. Replace the #toggler code in your style.css file with the following:

    Code:
    #toggler{
    position:relative;
    background: url(http://thegatebuilder.com/wp-content/themes/digitalgrass-10/images/trig.png) no-repeat;
    font-family: Tahoma, Verdana, "Myriad Web", Syntax, sans-serif;
    width: 137px;
    height: 50px;
    margin: 28px 0 0 775px;
    text-align:center;
    font-size:23px;
    outline:none;
    border:none;
    }
    Let me know if this corrects the issue with the "Designs/Gallery" tab. Also, make sure the toggle effect continues to work.
    {{ DiscussionBoard.errors[2306095].message }}
    • THANK YOU THANK YOU! WORKED LIKE A CHARM ;D


      Originally Posted by Chris Landrum View Post

      Rebecca,

      Please, backup your header.php and style.css files before you try this update.

      1. Remove the following code from your header.php file:

      Code:
      <div id="searchc"><?php include(TEMPLATEPATH . '/searchform.php'); ?></div>
      2. Replace the #toggler code in your style.css file with the following:

      Code:
      #toggler{
      position:relative;
      background: url(http://thegatebuilder.com/wp-content/themes/digitalgrass-10/images/trig.png) no-repeat;
      font-family: Tahoma, Verdana, "Myriad Web", Syntax, sans-serif;
      width: 137px;
      height: 50px;
      margin: 28px 0 0 775px;
      text-align:center;
      font-size:23px;
      outline:none;
      border:none;
      }
      Let me know if this corrects the issue with the "Designs/Gallery" tab. Also, make sure the toggle effect continues to work.
      {{ DiscussionBoard.errors[2308485].message }}

Trending Topics