Skip to main content
Question

CSS for Search Box

  • March 4, 2025
  • 6 replies
  • 49 views

Hi,

Does anyone have the CSS to remove the search box from the search bar?

 

6 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • March 4, 2025

Pleas try this:

/*hides global search*/
doc-layout-global-search-boxed {
visibility: hidden;
}

 


  • Author
  • Novice II
  • March 4, 2025

Thanks ​@lrnlab but that CSS completely hides the search. I’m just interested in hiding the box with the magnifying glass.


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • March 4, 2025

Sorry not sure what you mean...what do you want to retain on the page?


  • Author
  • Novice II
  • March 4, 2025

I want to retain the search bar, but the search box with the magnifying glass doesn’t serve a purpose. Is it possible to isolate the CSS and hide it? ​@lrnlab 


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • March 4, 2025

The magnifying glass in the green box is the clickable part to initiate the search; not all users know to hit enter to initiate the search.

I do not have code to hide just that part, sorry.


  • Author
  • Novice II
  • March 4, 2025

Thanks! Any recommendations to slide the box over into the pill shape search bar? ​@lrnlab