Page 1 of 1

How to remove categories from search box?

Posted: Sat Sep 17, 2016 12:39 am
by emanfrost
On my homepage to the right of the search box is a drop-down with a list of categories. Is it possible to remove that from the search bar, or would I have to remove the search bar altogether? I attached an image of what I'm talking about. The drop down says "All Categories".

Re: How to remove categories from search box?

Posted: Sat Sep 17, 2016 11:45 pm
by emanfrost
Bump.

Re: How to remove categories from search box?

Posted: Sun Sep 18, 2016 3:33 am
by cyclops12
What theme are you using as it doesnt look like default

Re: How to remove categories from search box?

Posted: Sun Sep 18, 2016 4:06 am
by emanfrost
ShopMe

Re: How to remove categories from search box?

Posted: Sun Sep 18, 2016 4:48 am
by cyclops12
Then 2 options....either ask the author of the theme for help or wait until someone possibly has the same theme then could check all the files

Re: How to remove categories from search box?

Posted: Mon Sep 19, 2016 5:49 pm
by X-Bumble
The easiest way is to just hide it using CSS rules. use the code inspector on your browser to find the name of the div that is holding it. Then add the code like this:

div.addthenamehere {
display:none;
}

if it is an ID rather than a class it would be

#addthenamehere {
display:none;
}

Be careful that the name of the div isn't shared by other divs as it will then hide all of them. Another alternative is to go into the code for that page and either comment the section out, or just delete it.

Always do a full back-up of the page BEFORE you do any code changes, so you can just put it back how it was if it goes wrong.

Re: How to remove categories from search box?

Posted: Mon Sep 19, 2016 11:49 pm
by emanfrost
Thank you for your help, I managed to do it.

I didn't do what you said, but you gave me the idea to inspect the code, and then I went in to the correct file and changed it.

Thanks again.