Jump to content

addCSS PS 1.7


TinyStore

Recommended Posts

2 hours ago, TinyStore said:

Is there anything else you need to do besides using:

$this->context->controller->addCSS($this->_path . 'views/css/XXX.css');

I have this in my hook function and I have my hook working but cannot get the css or js.

Try this :

public function hookHeader()
    {
        $this->context->controller->addCSS($this->_path . 'views/css/XXX.css', 'all');
    }

Link to comment
Share on other sites

1 hour ago, TinyStore said:

That didn't work either.  I put die; in the header and nothing happens so I don't think it's being called.

I get it to work by putting it under parent::__construct();

I cannot understand what I'm doing wrong.

 Can you mplease share code in php file so that i can found what is missing.

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...