1

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.

asked Sep 4, 2019 at 13:14
3
  • Have you run the deployment commands? Commented 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 Commented Sep 4, 2019 at 13:18
  • Try to remove the pub/static/frontend folder and run the command again. Commented Sep 4, 2019 at 13:21

2 Answers 2

1

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

answered Sep 4, 2019 at 13:30
0

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

so go to theme table

SELECT * FROM theme

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

answered Sep 5, 2019 at 4:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.