timarthurlee
Forum Replies Created
-
The issue I find is that if all you’re changing is the value of variables, it doesn’t detect the change. For ex.
if you change from this:
“
@test: 5em;
.test {
line-height:@test;
}
“
to
“
@test: 10em;
.test {
line-height:@test;
}
“
it doesn’t seem to detect it. Also I don’t think it detects changes to files that are included.
That’s the reason I suggested this capability (and implemented it on my installation). Thanks for any input you jave on this, And thanks again for the plugin.sorry, that’s apply_filters not apply_filter.
This would allow disabling the cache during development where you make frequent changes and curtain changes that do not trigger a cache reset.
Forum: Plugins
In reply to: [WP-LESS] [Plugin: WP-LESS] using php inside a .less fileI did get it working, but I had to make two changes in order to make it work:
1. It complains about parsing errors with:
@siteurl: %%bloginfo_url%%;
but it works with:
@siteurl: ‘%%bloginfo_url%%’;2. Variables that are in imported files do not get replaced.
In order to pass variables to different files I have to import the files, if I enqueue them each individually, the variables do not get passed.
Forum: Plugins
In reply to: [WP-LESS] [Plugin: WP-LESS] using php inside a .less fileWhat would the syntax be for the new modifications to pass these variables? I’ve been trying several things using the new action hook names but I’ve not been able to get anything different than before.
Thanks,
Forum: Plugins
In reply to: [WP-LESS] [Plugin: WP-LESS] cache timeout during developmentAs an update it seems that it detects changes in .less sheets that are directly called in an action filter, however any changes in files that where imported into the .less file (using @import: file.less;) do not get recognized so the file doesn’t get updated.
Forum: Plugins
In reply to: [WP-LESS] [Plugin: WP-LESS] using php inside a .less fileNo matter where I put the action call, I get that same error. I’ve tried placing it before the less sheet is processed as well as after. It doesn’t seem to be replacing the content, I’ve used your exact example and received these results. Any help would be appreciated.
Thanks,
Forum: Plugins
In reply to: [WP-LESS] [Plugin: WP-LESS] using php inside a .less fileWhen I try to use this method of passing variables to the .less file I get this:
parse error: failed at@siteurl: %%bloginfo_url%%;line: 2