• My Client would like to remove the search bar from the side bar and place it in the header area (banner). Is this possible and what is the best way to handle it? Through a hack or is there a plugin that will make it easier for her?

    Thank you
    R

Viewing 5 replies - 1 through 5 (of 5 total)
  • Edit the sidebar template file (sidebar.php?) and move <?php get_search_form();?> to header.php.

    Thread Starter rahjabodyart

    (@rahjabodyart)

    I am not finding that line of code in the template area.

    With the new version giving us top/bottom Widget areas, I have tried that as well and it looks a tad bit hideous. Any other suggestions since I can’t find the line of code that is mentioned above?

    It may depend on which theme you have activated, if you are using WordPress 3.x then have a look at my post (on my external blog I should add):

    move-the-search-box-to-the-header-wordpress-3-revision/

    You do need to edit code using this approach, so you need to be comfortable making changes to the sidebar.php and header.php files for your website installation.

    Thread Starter rahjabodyart

    (@rahjabodyart)

    I am using a custom skin and therefore have tried using your instructions, but I am unable to find that line of code in my sidebar.php line. I am thinking this is due to the custom skin element (created in Artisteer). I am lost right off the bat and I can edit lines of code easily just know that this line is not there at this time 🙁

    Any other ideas or assistance would be greatly appreciated.

    From previous questions about artisteer I think the sidebar file is called sidebar1.php and the line with the search form is something like:
    <form method="get" name="searchform" action="<?php bloginfo('url'); ?>/">
    Have a look and see if you can find that line in either sidebar.php or sidebar1.php.
    If you still have no luck finding the search form it is possible it is being loaded by a widget, maybe have a look at the widget settings under the Appearance menu in the dashboard.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Header Search Box’ is closed to new replies.