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.

Our New Release - Eight Degree Pro

Eight Degree Pro is a flexible WordPress theme with modern and mobile friendly design. This multipurpose WP template is suitable for building any kind of websites from blogs and portfolios to businesses. It comes with 3 predesigned demos with one click demo import features. Simply import the demo data and start customizing.

We've Launch offer 40% discount to our exclusive clients like you! Use coupon code customer during checkout. Get the theme only for $33 now (only for few days!)

Click on the below image for more detail.

Eight Degree Pro  WordPress Corporate Business Premium Theme

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:

Subscribe for newsletter