WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical – How to remove a category from dropdown list (search fields, properties list filters)

Technical – How to remove a category from dropdown list (search fields, properties list filters)

4705 views 0

To remove only specific categories from a list, can use a CSS trick, Attribute

Tutorial: https://css-tricks.com/almanac/selectors/a/attribute/
​
Apply this formula to theme search value you want to remove.

Ex: To remove “Sold” from this dropdown

Css Used:

.filter_menu [data-value="sold"] {
display: none!important;
}

And should apply in header search and half map search

Hide specific categories In front end dashboard submit form

Adapt the values for the categories you wish to hide and use the below css in Custom CSS or Customizer

#prop_action_category_submit option[value="179"] { 
display: none; 
}
#prop_category_submit option[value="175"] { 
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
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 51 Getting Started
  • 72 Installation & Setup
  • 243 Installation FAQ
  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 56FAQ
  • 15Footer
  • 37Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 7Other 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 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