Joyplaz Posted December 2, 2019 Share Posted December 2, 2019 Hi everyone, I've added this code to the header hook on a custom module I'm working on. It works perfectly on my local host, but on the live site, it's as though it blocks all css from functioning. $this->context->controller->addCSS($this->_path . 'views/css/ ecoIcon.css', 'all'); I've also tried... $this->context->controller->addCSS( _PS_BASE_URL_.__PS_BASE_URI__.'modules/fyp_ecoIcon/views/css/ecoIcon.css', 'all'); ... and it's the same story. It works fine on xampp, but not on the live site. Any thoughts would be greatly appreciated. Link to comment Share on other sites More sharing options...
Joyplaz Posted December 3, 2019 Author Share Posted December 3, 2019 Also, getting rid of the "all" param doesn't change the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now