Removing categories from the Search page
PhilCorleyPhoto
Registered Users Posts: 107 Major grins
I am trying to remove some of the categories from the search page (e.g., Videos). I have tried the CSS below, but the categories still show...
/*This code will hide the GALLERIES category*/ #sm-search-category-galleries { display: none !important; } /*This code will hide the FOLDERS category*/ #sm-search-category-folders { display: none !important; } /*This code will hide the VIDEOS category*/ #sm-search-category-videos { display: none !important; }
Anyone know what I am doing wrong?
Thanks
Phil
0
Comments
Try this instead:
Not certain, but I believe sm-search-category-videos are classes and not ids, so you have to refer to them with the dot-prefix and not the #-prefix.
Else: you might be in the wrong CSS block - if I remember correctly these ones belong into the Theme's CSS and not one of the CSS blocks directly in your customization-menu.
Good luck
Lille Ulven
Hmm, still not working. I have added this to the Theme's CSS (Customise, Content & Design, Theme, settings, Advanced, CSS) and they still show
Any other ideas ?
Thanks
Phil
I was wrong about it being a class, it actually is an id you are trying to remove...so the # needs to replace the . again.
And here is a complete description of how to do it: https://portal.photom.me/portal/hide-individual-search-categories-search-page/ by @tomnovy
Good luck
Lille Ulven.
Thanks Lille; works
Now - last one. Is it possible to change the label; so I can rename Pages to Blog ? Site must be nearly done now as I am into the fine-tuning tweaks