Jump to content

AddCSS working on localhost but not on live site


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...