• 0
Sign in to follow this  
Followers 0

How to remove CSS/LESS complier error


Question

Posted · Report post

I was playing around a LESS file with the Pageline Customization plugin, the theme then had a complier error message as follows:

 

PageLines Core LESS/CSS error.

parse error: failed at `@import: "normalize.less"` line: 7069

 

I have deleted the plugin, removed the normalize.less file from the directory and reinstalled the theme. The error message still remain there.

 

Please advice how to fix this issue.

 

Thanks.

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

Hi there,

 

Look for a button in the admin bar at the top of the page which says 'flush less'. Hit that and it should recompile and clear the error :-)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks so much, it is fixed now.

 

I wanted to use preboot.less from http://getpreboot.com/ (same bootstrap creator) as well as the "normalize.less" file as it is recommended in his Github. Here is what I did lead me to the compile error:

 

1. saved both less files in the same directory as the style.less & function.php from Pagelines Customization Plugin.

 

2. In "style.less" file, I added the following two lines.

 

@import: "normalize.less"

@import: "preboot.less"

 

3. then I added some LESS CSS codes in "style.less"

 

4. When I refresh my site, the compile error happened.

 

What did I do wrong?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there,

 

I'm glad that worked :-)

 

I'm not a developer so I'm not sure on the other two files being used within the customize plugin from what I've read @import rules have to go at the top of the styesheet above the body tag for them to work. I think the plugin won't be able to use those files to be honest, it will have to go into a child theme, like the base theme. There's an example of what LESS the plugin can handle as opposed to the theme here which might help- http://demo.pagelines.me/theming/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for pointing me to this link, I will take a look.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there,

 

Look for a button in the admin bar at the top of the page which says 'flush less'. Hit that and it should recompile and clear the error :-)

 

I can't find the "Flush LESS" button in the WordPress Admin anywhere at the top of the page.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

From what I can remember, you need to have Debug Mode active.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0