WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / How to remove first option from theme search taxonomies dropdown

How to remove first option from theme search taxonomies dropdown

3279 views 0

In theme we have 5 taxonomies: action, category, city, area and state. In search dropdown it has as the first option:

-“Categories” for  action taxonomy,

-“Types” for category taxonomy,

-“Cities” for city taxonomy,

-“Areas” for area taxonomy,

-“States” for state taxonomy.

They are available to help users find all categories after selecting one item – and we don’t recommend deleting them.

This is the custom css solution for the above request:

#search_wrapper .dropdown.form-control .filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #categlist.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #adv-search-city.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #adv-search-area.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #actionslist.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #adv-search-countystate.filter_menu [data-value="all"],
.listing_filter_select .dropdown-menu.filter_menu [data-value="all"],
.open>#adv-search-city.dropdown-menu [data-value="all"],
.open>#acateglist.dropdown-menu [data-value="all"],
.open>#adv-search-area.dropdown-menu [data-value="all"],
.open>#actionslist.dropdown-menu [data-value="all"],
.open>#adv-search-countystate.dropdown-menu [data-value="all"],
#adv-search-mobile .filter_menu [data-value="all"]{
display: none;
}

/* Elementor / Builder Search Form widget */
#search_wrapper .dropdown.form-control .filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #categlist.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #adv-search-city.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #adv-search-area.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #actionslist.filter_menu [data-value="all"],
#search_wrapper .dropdown.form-control #adv-search-countystate.filter_menu [data-value="all"],
.listing_filter_select .dropdown-menu.filter_menu [data-value="all"],
.open>#adv-search-city.dropdown-menu [data-value="all"],
.open>#acateglist.dropdown-menu [data-value="all"],
.open>#adv-search-area.dropdown-menu [data-value="all"],
.open>#actionslist.dropdown-menu [data-value="all"],
.open>#adv-search-countystate.dropdown-menu [data-value="all"],
#adv-search-mobile .filter_menu [data-value="all"],
.wpresidence_elementor_form .filter_menu [data-value="all"],
.elementor-widget-WpResidence_Search_Form_Builder .filter_menu [data-value="all"] {
display: none;
}

 

Help article about how to add custom CSS

Tip: If you have theme cache enabled, make sure you clear cache to see instant results.

Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 53FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 24Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 6Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 32Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 7Technical: Child Theme
  • 86Theme Options & Global Settings
  • 7Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate / WPResidence Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API