Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How Can I override vendor/magento/magento2-base/lib/web/css/source/lib/_navigation.less file in my custom theme ?

share|improve this question
up vote 3 down vote accepted

You can try with

app/design/frontend/{Vendor}/{Theme}https://waybackassets.bk21.net/css/source/lib/_navigation.less

Read more: How to override gallery.css

share|improve this answer

1) You have to copy _navigation.less from your parent theme to app\design\frontend\vendor\theme\web\css\source(your custom theme) and override your css after .lib-main-navigation(); and .lib-main-navigation-desktop(); this lib navigation style.

OR

2) you can override navigation variable's value in custom theme's _theme.less,

you can find variable name at lib\web\css\source\lib\variables

_navigation.less
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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