# Add two different search boxes

**URL:** <https://community.hivepress.io/t/add-two-different-search-boxes/15059>\
**Category:** HivePress\
**Created:** [February 19, 2025, 5:52pm UTC](https://community.hivepress.io/t/add-two-different-search-boxes/15059 "2025-02-19T17:52:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![esamedien](https://community.hivepress.io/letter_avatar_proxy/v4/letter/e/ebca7d/32.png) [@esamedien](https://community.hivepress.io/u/esamedien)\
**Post date:** [February 19, 2025, 5:52pm UTC](https://community.hivepress.io/t/add-two-different-search-boxes/15059/1 "2025-02-19T17:52:39Z")

</div>

Hey there,

we want to use 2 different search boxes if possible. On mainpage the searchbox should show location and category field. in categories we want to show just the location field.

---

<div class="post-metadata">

**Author:** ![condorito.fr](https://community.hivepress.io/user_avatar/community.hivepress.io/condorito.fr/32/11449_2.png) [@condorito.fr](https://community.hivepress.io/u/condorito.fr)\
**Post date:** [February 19, 2025, 6:05pm UTC](https://community.hivepress.io/t/add-two-different-search-boxes/15059/2 "2025-02-19T18:05:45Z")

</div>

Maybe you should use the Developer Tools \> Inspect, and try to hide with CSS the one field you don’t want to be displayed, depending on your use case and your theme.

```auto
/*CSS sample*/
.some_selector{
display:none;
}

```

---

<div class="post-metadata">

**Author:** ![esamedien](https://community.hivepress.io/letter_avatar_proxy/v4/letter/e/ebca7d/32.png) [@esamedien](https://community.hivepress.io/u/esamedien)\
**Post date:** [February 19, 2025, 6:46pm UTC](https://community.hivepress.io/t/add-two-different-search-boxes/15059/3 "2025-02-19T18:46:05Z")

</div>

okay, it works, but somehow it doesn’t feel right to do it this way 😂  
We used the code-snippets plugin and set some rules for the url. so the css code comes into use when site url includes specific signs or words.

the csss code is

```auto
.hp-form__field--select {
    display:none;
}

```

We will see if this solution will make problems or is working fine.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [March 22, 2025, 8:24am UTC](https://community.hivepress.io/t/add-two-different-search-boxes/15059/5 "2025-03-22T08:24:25Z")

</div>

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