How to Add Custom LESS File in Magento 2
In this instructional exercise, Today I will make sense of for how to add custom LESS record in custom subject in Magento 2. At the point when you make custom subject, then, at that point, you really want to add center LESS file inside your custom subject. Here and there, you should have to make your custom less document for your custom subject. Around then, You just made less document and check after send be that as it may, your progressions not reflected.
Along these lines, It's happen in light of the fact that you didn't add custom less record. Presently, simply follow the beneath way
You may likewise this way :
The most effective method to Add Custom Breakpoints in Magento 2
The most effective method to Add Custom Validation Rule in Magento 2
1) Let's accept that you have made custom topic. Presently, Create your custom less document at application/plan/frontend/Vendor Name/Theme Name/web/CSS/source/_custom. Less and add your less code inside that record.
2) After that you want to import this _custom. Less record at application/plan/frontend/Vendor Name/Theme Name/web/CSS/source/_sources. Less
You want to import your _custom. Less document utilizing this above line. Simply add that line inside _sources. Less record. On the off chance that this _sources. Less record not exist in your custom subject then, you want to duplicate document from merchant/magneto/subject frontend-clear/web/CSS/source/_sources. Less record in your topic.
Presently, simply have to send and clean reserve.
REFERENCE:
Comments
Post a Comment