I am creating a custom master page and I have a default search box in the header. I will be using same master page as site and system master page. Currently search box is visible on all pages. But "seattle.master" doesn't show a search box on the 'site settings' and 'Add an App' page. Can I hide search box on site settings and "Add an App" page?

1 Answer 1


The probably simplest method would be to add the following CSS to your masterpage, assuming your custom searchbox has an HTML element ID of #Searchbox:

#aspnetForm[action*="settings.aspx"] #SearchBox,
#aspnetForm[action*="addanapp.aspx"] #SearchBox
  display: none;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.