Free Directory, Listing & Classifieds WordPress Plugin Support General HivePress Is there a way to hide attribute from the side search bar?

Is there a way to hide attribute from the side search bar?

  • Author
    Posts
  • valmes

    Is there a way to hide attribute from the side search bar? I cant uncheck “searchable” since it doesn’t allow to search for attribute using link… simple way is to hide it in the search bar.

    ihordeveloper

    If you’re familiar with CSS please check the field class or ID via the web inspector and hide it with a custom CSS snippet.

    valmes

    Thanks Ihor, if I would be familiar with CSS I wouldn’t come up with such a simple question…

    ihordeveloper

    You can try using this one, adjusting the field order (123).

    .hp-form--listing-filter .hp-form__field:nth-child(123) {display:none}

    valmes

    The Attribute I created is Called (label) VIN. I looked it up in Extended Search plugin and its called “hp_vin” there. Tried:
    .hp-form--listing-filter .hp-form__field:hp_vin {display:none}
    .hp-form--listing-filter .hp-form__field--hp_vin {display:none}
    Didn’t work…

    ihordeveloper

    It depends on the field position, not name, please try using the suggested snippet and change 123 to 1, or 5 etc. depending on the field you want to hide.

    valmes

    Ohh… Thanks!!! Found it! #6 did it!

    valmes

    But is it dynamic? I mean on the other page (like when you move into a category) it will hide something different within that position?

    ihordeveloper

    If this field has the same position in the filter form then this CSS snippet should hide it on all pages.

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

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Cyber Monday is here! Get 25% off with MONDAY2020 coupon code until Monday, December 7.