I'm trying to customize this component:

enter image description here

As I read from the documentation, in order to override the style of this search bar you need to create a folder called Magento_Search and add an _extend.less file in web/css/source/ but nothing happens. I can't figure out why.

  • Have you run the deployment commands?
    – Sumit
    Sep 4, 2019 at 13:15
  • if you talk about setup:static-content:deploy, yes. I've tried also with -f option since I'm in developer mode Sep 4, 2019 at 13:18
  • Try to remove the pub/static/frontend folder and run the command again.
    – Sumit
    Sep 4, 2019 at 13:21

2 Answers 2


Override /vendor/magento/module-search/ module with Magento_Search module from your custom theme folder.


as per your screenshot can see only blank theme applies, and your theme consider as a virtual theme

so go to theme table


and check type column

if your theme type column has 1 value then set it as 0

and then run

php bin/magento s:s:d -f

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.