Mobile app version of vmapp.org
Login or Join
Deb1703797

: Using style.less from lesscss.org doesn't properly show changes I make to the style.less file? I inherited a wordpress project that was initially developed by another developer and for the CSS

@Deb1703797

Posted in: #Css #CssFramework #Javascript #Wordpress

I inherited a wordpress project that was initially developed by another developer and for the CSS they utilize the script from: lesscss.org (which so far seems to not only be overkill but horrible if the user doesn't have javascript enabled on their browser)

My guess is that it is caching but even in safari if I disable Cache, it doesn't update with my changes.

Safari loaded with some changes, but when I made more changes it only shows the same time from the first page view. Same thing in firefox except firefox doesn't show any of the new changes. This only applies to css changes made in the style.less file. If I make any changing to the html code then every loads correctly.

I even tried appending #!watch’ to the url like the web page said, but still no luck.

Any idea on what I can do to make the changes load correctly?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

(which so far seems to not only be overkill but horrible if the user
doesn't have javascript enabled on their browser)


This is not entirely true, typically LESS stylesheets compile to CSS and are served to the users are regular CSS.

I've never heard of a web application serving LESS styles and then invoking a javascript library to convert that LESS into actual CSS. That would be counter-productive.

I've never worked with Wordpress (really digging into the code base) but typically, the LESS stylesheet is compiled to CSS on some kind of event. In my case, a Visual Studio 2010 extension would compile the LESS into a typical .CSS file and I would use that.

So dig into the code and figure out when the LESS is being turned into CSS. You may find out that what you're writing in the .less file isn't even being added into the .css file you are serving.

Maybe it's not an automatic process on Wordpress and you have to manually convert the stylesheets.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme