Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12919

    Hi,

    We want the “Search for Products” Box to move to the “Search in Site” box and replace it. Kindly help on how we can do this in Abundance theme.

    Thanks,

    Br.Arvind

    #77165

    In header.php remove following code:

    /*
    * display the theme search form
    * the tempalte file that is called is searchform.php in case you want to edit it
    */
    get_search_form();

    and replace:

    <ul class="social_bookmarks">

    with

    <form id="searchform" action="<?php echo get_bloginfo('url'); ?>" method="get" role="search">
    <div>
    <label class="screen-reader-text" for="s">Search for:</label>
    <input id="s" type="text" placeholder="Search for products" name="s" value="">
    <input id="searchsubmit" type="submit" value="Search">
    <input type="hidden" value="product" name="post_type">
    </div>
    </form>
    <ul class="social_bookmarks">

    #77166

    Thanks a lot! It works great

    #77167

    @ srkmath and Dude,

    Thanks for the tip and info, works great!

    #77168

    Hello,

    Very helpful. :)

    Regards,

    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Search for Products Box to replace Search in Site Box’ is closed to new replies.