Search code examples
javascripthtmlcsslessstylesheet

CSS / less files not loading


I have an issue on my site where suddenly the styling seems to be turned off...I have not removed any link to the stylesheet files, yet it seems as if they are not loaed. How would you fix this issue?

I noticed through Chrome that I get an uncaught reference error about an infinite_scroll not being defined, however I deactivated this plugin through the wordpress dashboard and I saw no effect.


Solution

  • To use .less file for styling you need to compile it into a .css file. So don't include .less like a regular stylesheet, but include style.css, which has to be generated by a LESS preprocessor.

    Your source style.less file has a syntax error in .inboxReminder {}, there's #position:absolute;. Remove the hash and it compiles. (You can comment out single lines in LESS using //).