Adjusting the search box: removing the select box

Home Page 8DegreeThemes Forum Free Themes WP Store Adjusting the search box: removing the select box

Tagged: , ,

  • Author
    Posts
  • #15595

    goliath
    Participant

    I want to get rid of the select box in the searchbar, as all the searches must be over the products.

    See: current situation

    What do I need to alter to get rid of the select box ?

  • #15614

    8Degree Themes
    Keymaster

    Hi there,

    First of all,
    1. Go to theme directory of wp-store(by cpanel or plugins goto ../../wp-content/themes/wp-store/).
    2. Find file name searchform-header.php and replace all code with following codes:

    <?php
    /**
      *
     * @package WP_Store
     */
    $search = get_theme_mod('wp_store_header_setting_search_placeholder',__('Search...','wp-store'));
    ?>
    <form method="get" class="searchform" action="<?php echo esc_url(home_url(/) ); ?>" role="search">
    	<input type="text" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" class="search-field" placeholder="<?php echo esc_attr($search); ?>" />
    	<input type="hidden" name="post_type" value="product" class="search-field" placeholder="<?php echo esc_attr($search); ?>" />
    </form>

    3. Then, Save file
    4. Login your wordpress site and go to dashboard.
    5. Go to Appearance -> Customize -> Additional CSS and paste the codes given below:

    .header-search .search-field {
        width: 100%;
    }

    This will solve your problem. If you have any confusion then you can mail us.

    Thanks.

  • #15626

    goliath
    Participant

    Works like a charm! Thank you so much, I really appreciate it.

You must be logged in to reply to this topic.

Please post your questions in the respective forum above.

All questions related to our Pro theme will be answered in less than 24 hours. All questions related to our Free theme will be answered in less than 48 hours.
Our Facebook page is the best place to get updated with themes, documentation, question/answers. Please like us here: