I am working on building our local theme into OJS 3 and I decided to go with the child theme route as that seems a lot cleaner. However, I’m running into a disconnect between what the docs say and what’s actually happening and was wondering if you all might have any ideas?
My init is doing the following two steps:
$this->modifyStyle(‘stylesheet’, array(‘addLess’ => array(‘styles/chass_variables.less’)));
chass_variables.less is a full copy of the variables.less file from default/styles where I have modified a few fields – basically just the font and some background colors just to test to make sure it works. (like I was aiming to make the background color something ridiculous for testing purposes) However, my modifications are not coming through at all. All I’m getting is the default theme’s colors so it’s as of mine are being flat out ignored.
I am running PHP 5.6.30 and I do see a long myriad of PHP Strict Standards warnings and PHP Deprecated warnings from within the OJS 3 code, but no errors or warnings beyond that. Nothing about being unable to build compile the less file or anything. I actually installed the less compiler and compiled it manually just to make sure it didn’t throw errors.
Any ideas what I might be missing or where I should be looking? From my perspective I’ve done exactly what the demonstration and documentation suggests. =/
Note: template files and explicitly included css files are working, it’s just the less based override that is not.