Add two different search boxes

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.

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.

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

okay, it works, but somehow it doesn’t feel right to do it this way :joy:
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

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

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

1 Like