Remove categorie to the sidebar in requests page

Bonjour,

Sur ma page demande (requests) j’ai une barre de recherche avec mots clés et recherche d’une catégorie. Cependant sur la Sidebar à gauche il y a encore les catégories avec les attributs. J’ai essayer tous les code possibles pour enlever les catégories du Sidebar je n’arrive pas. Et quand je vais dans apparence widgets, il n’y a rien dans ma Sidebar rquests. Je suis une débutante dans la construction de site web donc si quelques peut m’aider se serait vraiment gentil.

Hello,

On the Requests Archive Page (I am using Requests, not Listings), I want to use the Sidebar Filter. I need to hide/remove the default “Categories” field (since users already select a category in the header search) . I only want to keep my custom attribute in the sidebar.

The Problem: I cannot get rid of the “Categories” and “Budget” fields in the sidebar.

What I have tried (without success):

  1. CSS: I tried display: none on .hp-form__field--categories and .widget_hivepress_request_categories. It works on the top search bar but NOT in the sidebar.

  2. PHP: I tried the hivepress/v1/forms/request_filter hook to unset the fields. It didn’t work.

  3. Elementor: I tried creating a Template for Requests Archive, but I couldn’t customize the Listing Filter widget to remove these specific fields.

Could you please provide a snippet or a solution to force-hide the Categories and Budget from the Requests Sidebar?

Thank you very much for your help!

Hi @Nes,

If you can share a link to your site, I’ll see if I can provide a solution using CSS.

Cheers,
Chris :victory_hand:

Hu,

Here is the link to the site

Thanks for the help

Hi @Nes,

Thanks for sharing the link!

In the backend of WordPress visit Appearance > Customise > Additional CSS and try pasting in the following:

.hp-template--requests-view-page .hp-form__field.hp-form__field--radio {
    display: none;
}

.hp-template--requests-view-page .hp-form__field.hp-form__field--number-range {
    display: none;
}

This removes (hides) the category selection and budget field in the sidebar, and the code is scoped to only remove the field from this page, so it won’t break other HivePress forms. :slight_smile:

I hope this helps!

Cheers,
Chris :victory_hand:

Hi,

Please let me know if the provided CSS snippet works for you.

P.S. Please note that we have to move this topic to the Requests forum category. Since it’s related to a premium extension, the forum category is restricted — please add the license key to the account settings or consider renewing support if you still need assistance related to the premium themes or extensions Renew Support | HivePress

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.