Title: Problem with @import
Last modified: August 21, 2016

---

# Problem with @import

 *  [hinotan](https://wordpress.org/support/users/hinotan/)
 * (@hinotan)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-import-1/)
 * Hi there,
 * I’ve been having this issue when importing another less file. It seems when the
   target file has been imported previously in another file, it won’t be imported
   into this file.
 * To give some context…
    I have `main.less`, `_desktop.less`, `_mobile.less`, `
   iefix.less`. The desktop and mobile styles are meant to be imported in `main.
   less` inside media queries. And in order to cater for IE, I have `iefix.less`
   enqueued after `main.less` where I import desktop styles again to fill in the
   gap when old IE ignores media queries.
 * However the `_desktop.less` is completely ignored in the iefix outcome. When 
   I tried to enqueue iefix before main style, it happened in the latter.
 * Can someone help please? Thanks!
 * [https://wordpress.org/plugins/wp-less/](https://wordpress.org/plugins/wp-less/)

The topic ‘Problem with @import’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-less.svg)
 * [WP-LESS](https://wordpress.org/plugins/wp-less/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-less/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-less/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-less/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-less/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-less/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [hinotan](https://wordpress.org/support/users/hinotan/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/problem-with-import-1/)
 * Status: not resolved